From 3f7b375bfba7b4a9c981a21318ce7c0f32058709 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;