[vlc-commits] qml: add EmptyLabel in Genres Display

Prince Gupta git at videolan.org
Wed Jan 27 09:25:26 UTC 2021


vlc | branch: master | Prince Gupta <guptaprince8832 at gmail.com> | Thu Dec  3 16:12:00 2020 +0530| [9e25a0768d10f739f2b8103ecb75b2f0071e44d6] | committer: Pierre Lamot

qml: add EmptyLabel in Genres Display

Signed-off-by: Pierre Lamot <pierre at videolabs.io>

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



More information about the vlc-commits mailing list