[vlc-devel] [PATCH 27/28] qml: hide playlist header content when list is empty

Fatih Uzunoglu fuzun54 at outlook.com
Tue Jul 21 19:28:57 CEST 2020


---
 modules/gui/qt/playlist/qml/PlaylistListView.qml | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/modules/gui/qt/playlist/qml/PlaylistListView.qml b/modules/gui/qt/playlist/qml/PlaylistListView.qml
index d0a444adf4..fa7256f279 100644
--- a/modules/gui/qt/playlist/qml/PlaylistListView.qml
+++ b/modules/gui/qt/playlist/qml/PlaylistListView.qml
@@ -211,14 +211,15 @@ Widgets.NavigableFocusScope {
 
                 Widgets.CaptionLabel {
                     anchors.topMargin: VLCStyle.margin_small
+                    visible: plmodel.count !== 0
                     text: i18n.qtr("%1 elements, %2 min").arg(root.plmodel.count).arg(plmodel.duration.toMinutes())
                     color: _colors.caption
                 }
             }
 
-
             RowLayout {
                 id: content
+                visible: plmodel.count !== 0
 
                 Layout.topMargin: VLCStyle.margin_normal
                 Layout.leftMargin: root.leftPadding + VLCStyle.margin_normal
-- 
2.25.1



More information about the vlc-devel mailing list