[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>
xcode15
Christopher Snowhill 2022-07-29 01:42:45 -07:00
parent af453816a0
commit 3f7b375bfb
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;