[vlc-devel] [PATCH 3/5] qml: add EmptyLabel in Genres Display
Prince Gupta
guptaprince8832 at gmail.com
Fri Jan 22 16:03:16 UTC 2021
---
modules/gui/qt/medialibrary/qml/MusicGenres.qml | 9 +++++++++
1 file changed, 9 insertions(+)
diff --git a/modules/gui/qt/medialibrary/qml/MusicGenres.qml b/modules/gui/qt/medialibrary/qml/MusicGenres.qml
index 8ba57d3098..6b6bbab9a3 100644
--- a/modules/gui/qt/medialibrary/qml/MusicGenres.qml
+++ b/modules/gui/qt/medialibrary/qml/MusicGenres.qml
@@ -277,4 +277,13 @@ Widgets.NavigableFocusScope {
}
}
}
+
+ EmptyLabel {
+ anchors.fill: parent
+ visible: genreModel.count === 0
+ focus: genreModel.count === 0
+ text: i18n.qtr("No genres found\nPlease try adding sources, by going to the Network tab")
+ navigationParent: root
+ cover: VLCStyle.noArtAlbumCover
+ }
}
--
2.25.1
More information about the vlc-devel
mailing list