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:
der richter 2020-01-19 12:48:40 +01:00
parent 695d850412
commit 465f48fb0c
1 changed files with 3 additions and 1 deletions

View File

@ -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()
}
}