diff options
author | der richter <der.richter@gmx.de> | 2024-02-13 22:23:51 +0100 |
---|---|---|
committer | der richter <der.richter@gmx.de> | 2024-02-15 00:11:55 +0100 |
commit | bba3d28781623ede635ecdde4af6126733e22877 (patch) | |
tree | 0ff851eca5be69780f90ba4fef830542aa20f0e0 /osdep/macos | |
parent | 45192d94d356c25b032c0d6c360ed35fca6215aa (diff) | |
download | mpv-bba3d28781623ede635ecdde4af6126733e22877.tar.bz2 mpv-bba3d28781623ede635ecdde4af6126733e22877.tar.xz |
mac/remote: simplify cover retrieval
Diffstat (limited to 'osdep/macos')
-rw-r--r-- | osdep/macos/remote_command_center.swift | 4 |
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 |