Skip to content

Commit

Permalink
cocoaui: refresh status bar on playlist changes
Browse files Browse the repository at this point in the history
  • Loading branch information
Oleksiy-Yakovenko committed Jan 31, 2024
1 parent 5a6bb21 commit ef76a5a
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions plugins/cocoaui/MainWindowController.m
Original file line number Diff line number Diff line change
Expand Up @@ -522,6 +522,9 @@ - (void)message:(int)_id ctx:(uint64_t)ctx p1:(uint32_t)p1 p2:(uint32_t)p2 {
if (_id == DB_EV_PLAYBACK_STATE_DID_CHANGE) {
[self performSelectorOnMainThread:@selector(ensureRefresh) withObject:nil waitUntilDone:NO];
}
else if (_id == DB_EV_PLAYLISTCHANGED) {
[self performSelectorOnMainThread:@selector(updateSonginfo) withObject:nil waitUntilDone:NO];
}
}

#pragma mark - DeletePlaylistConfirmationControllerDelegate
Expand Down

0 comments on commit ef76a5a

Please sign in to comment.