[vlc-commits] qml: hide playlist header content when list is empty

Fatih Uzunoglu git at videolan.org
Fri Jul 24 11:46:08 CEST 2020


vlc | branch: master | Fatih Uzunoglu <fuzun54 at outlook.com> | Tue Jul  7 21:17:23 2020 +0300| [64b608e5c8f739a6a88543083d5ada234f222660] | committer: Pierre Lamot

qml: hide playlist header content when list is empty

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

 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



More information about the vlc-commits mailing list