mirror of https://github.com/mpv-player/mpv
cocoa-cb: don't set App icon when called from bundle
due to the bundle config the icon is set automatically via the bundle system mechanisms. this also makes it possible to set the icon to a custom one with the standard macOS copy paste method via the file info dialogue. Fixes #6874
This commit is contained in:
parent
695d850412
commit
465f48fb0c
|
@ -166,7 +166,9 @@ class CocoaCB: NSObject {
|
|||
}
|
||||
|
||||
func setAppIcon() {
|
||||
if let app = NSApp as? Application {
|
||||
if let app = NSApp as? Application,
|
||||
ProcessInfo.processInfo.environment["MPVBUNDLE"] != "true"
|
||||
{
|
||||
NSApp.applicationIconImage = app.getMPVIcon()
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue