[Playlist Menu] Disable actions on empty selection

These actions should not be invoked when there is no selection.

Signed-off-by: Christopher Snowhill <kode54@gmail.com>
main
Christopher Snowhill 2022-07-29 01:42:45 -07:00
parent ff1afdb63c
commit a4327579fa
1 changed files with 4 additions and 0 deletions

View File

@ -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;