summaryrefslogtreecommitdiffstats
path: root/video/out
diff options
context:
space:
mode:
authorder richter <der.richter@gmx.de>2024-03-26 00:06:42 +0100
committerder richter <der.richter@gmx.de>2024-03-29 14:20:40 +0100
commit1acca1d3c4c5952911a4b6ea4b8102898a244b57 (patch)
tree4757c6581cd5febaae3fc4dd28c5ef9ba1f61eed /video/out
parent86aea966d92053e3aca364a802c5619da2e7d428 (diff)
downloadmpv-1acca1d3c4c5952911a4b6ea4b8102898a244b57.tar.bz2
mpv-1acca1d3c4c5952911a4b6ea4b8102898a244b57.tar.xz
mac/apphub: move app icon into AppHub
split up AppHub header in obj-c and c parts and make it a bidirectional bridging.
Diffstat (limited to 'video/out')
-rw-r--r--video/out/mac/common.swift6
1 files changed, 2 insertions, 4 deletions
diff --git a/video/out/mac/common.swift b/video/out/mac/common.swift
index 45628782e9..c848bef53d 100644
--- a/video/out/mac/common.swift
+++ b/video/out/mac/common.swift
@@ -358,10 +358,8 @@ class Common: NSObject {
}
func setAppIcon() {
- if let app = NSApp as? Application,
- ProcessInfo.processInfo.environment["MPVBUNDLE"] != "true"
- {
- NSApp.applicationIconImage = app.getMPVIcon()
+ if ProcessInfo.processInfo.environment["MPVBUNDLE"] != "true" {
+ NSApp.applicationIconImage = AppHub.shared.getIcon()
}
}