[vlc-devel] [PATCH 2/2] qml: fix playlist not shown when clicking on the playlist button

Pierre Lamot pierre at videolabs.io
Wed Jul 10 10:41:54 CEST 2019


---
 modules/gui/qt/qml/player/ControlBar.qml     | 1 -
 modules/gui/qt/qml/player/ControlButtons.qml | 2 +-
 2 files changed, 1 insertion(+), 2 deletions(-)

diff --git a/modules/gui/qt/qml/player/ControlBar.qml b/modules/gui/qt/qml/player/ControlBar.qml
index b4cd089321..7889717410 100644
--- a/modules/gui/qt/qml/player/ControlBar.qml
+++ b/modules/gui/qt/qml/player/ControlBar.qml
@@ -33,7 +33,6 @@ Utils.NavigableFocusScope {
     id: root
 
     signal showTrackBar()
-    signal showPlaylist()
 
     property bool noAutoHide: _lockAutoHide !== 0
     property int  _lockAutoHide: 0 //count the number of element locking the autoHide
diff --git a/modules/gui/qt/qml/player/ControlButtons.qml b/modules/gui/qt/qml/player/ControlButtons.qml
index ad53fc5680..0c70b2853d 100644
--- a/modules/gui/qt/qml/player/ControlButtons.qml
+++ b/modules/gui/qt/qml/player/ControlButtons.qml
@@ -161,7 +161,7 @@ Item{
             objectName: "IconToolButton"
             size: VLCStyle.icon_medium
             text: VLCIcons.playlist
-            onClicked: root.showPlaylist()
+            onClicked: rootWindow.playlistVisible = !rootWindow.playlistVisible
             property bool acceptFocus: true
         }
 
-- 
2.17.1



More information about the vlc-devel mailing list