vlc | branch: master | Prince Gupta <[email protected]> | Thu Dec  3 
16:12:00 2020 +0530| [9e25a0768d10f739f2b8103ecb75b2f0071e44d6] | committer: 
Pierre Lamot

qml: add EmptyLabel in Genres Display

Signed-off-by: Pierre Lamot <[email protected]>

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=9e25a0768d10f739f2b8103ecb75b2f0071e44d6
---

 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
+    }
 }

_______________________________________________
vlc-commits mailing list
[email protected]
https://mailman.videolan.org/listinfo/vlc-commits

Reply via email to