summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorder richter <der.richter@gmx.de>2024-02-13 22:23:51 +0100
committerder richter <der.richter@gmx.de>2024-02-15 00:11:55 +0100
commitbba3d28781623ede635ecdde4af6126733e22877 (patch)
tree0ff851eca5be69780f90ba4fef830542aa20f0e0
parent45192d94d356c25b032c0d6c360ed35fca6215aa (diff)
downloadmpv-bba3d28781623ede635ecdde4af6126733e22877.tar.bz2
mpv-bba3d28781623ede635ecdde4af6126733e22877.tar.xz
mac/remote: simplify cover retrieval
-rw-r--r--osdep/macos/remote_command_center.swift4
1 files changed, 1 insertions, 3 deletions
diff --git a/osdep/macos/remote_command_center.swift b/osdep/macos/remote_command_center.swift
index f09360f815..f6613a1f9a 100644
--- a/osdep/macos/remote_command_center.swift
+++ b/osdep/macos/remote_command_center.swift
@@ -84,9 +84,7 @@ class RemoteCommandCenter: NSObject {
commandCenter.bookmarkCommand,
]
- if let app = NSApp as? Application, let icon = app.getMPVIcon() {
- cover = icon
- }
+ cover = (NSApp as? Application)?.getMPVIcon() ?? cover
for cmd in disabledCommands {
cmd.isEnabled = false