From a4327579fafb9e85e13abbc58aea0c5ca200816b Mon Sep 17 00:00:00 2001 From: Christopher Snowhill Date: Fri, 29 Jul 2022 01:42:45 -0700 Subject: [PATCH] [Playlist Menu] Disable actions on empty selection These actions should not be invoked when there is no selection. Signed-off-by: Christopher Snowhill --- Playlist/PlaylistController.m | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Playlist/PlaylistController.m b/Playlist/PlaylistController.m index cead0aaed..8c03edbd2 100644 --- a/Playlist/PlaylistController.m +++ b/Playlist/PlaylistController.m @@ -1770,9 +1770,13 @@ static void *playlistControllerContext = &playlistControllerContext; if(action == @selector(addToQueue:)) return NO; + if(action == @selector(toggleQueued:)) return NO; + if(action == @selector(searchByArtist:)) return NO; if(action == @selector(searchByAlbum:)) return NO; + + if(action == @selector(stopAfterSelection:)) return NO; } return YES;