Skip to content
Snippets Groups Projects
Commit d5692b7f authored by Claudio Cambra's avatar Claudio Cambra Committed by Steve Lhomme
Browse files

macosx: Display no results message if relevant in playlists view


Signed-off-by: default avatarClaudio Cambra <developer@claudiocambra.com>
parent 2cea24e1
No related branches found
No related tags found
1 merge request!6136macosx: Unify handling of various view's presentation
......@@ -274,10 +274,12 @@
{
const vlc_ml_playlist_type_t playlistType = self.dataSource.playlistType;
VLCLibraryModel * const libraryModel = VLCMain.sharedInstance.libraryController.libraryModel;
if ([libraryModel numberOfPlaylistsOfType:playlistType] <= 0) {
[self presentPlaceholderPlaylistLibraryView];
} else {
if ([libraryModel numberOfPlaylistsOfType:playlistType] > 0) {
[self presentPlaylistLibraryView];
} else if (self.dataSource.libraryModel.filterString.length > 0) {
[self.libraryWindow displayNoResultsMessage];
} else {
[self presentPlaceholderPlaylistLibraryView];
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment