Skip to content

Commit

Permalink
mac/remote: simplify cover retrieval
Browse files Browse the repository at this point in the history
  • Loading branch information
Akemi committed Feb 14, 2024
1 parent 45192d9 commit bba3d28
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions osdep/macos/remote_command_center.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit bba3d28

Please sign in to comment.