[vlc-commits] qt: add missing playlist-visible setting retrieval

Fatih Uzunoglu git at videolan.org
Mon Aug 10 12:10:09 CEST 2020


vlc | branch: master | Fatih Uzunoglu <fuzun54 at outlook.com> | Thu Jul 30 00:04:35 2020 +0300| [6f52064b7eea1eb4e613ca8d43390d6bb7e3ec5c] | committer: Pierre Lamot

qt: add missing playlist-visible setting retrieval

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

 modules/gui/qt/maininterface/main_interface.cpp | 4 +++-
 modules/gui/qt/maininterface/mainui.cpp         | 6 ++++--
 2 files changed, 7 insertions(+), 3 deletions(-)

diff --git a/modules/gui/qt/maininterface/main_interface.cpp b/modules/gui/qt/maininterface/main_interface.cpp
index 072c574d08..b821007d0f 100644
--- a/modules/gui/qt/maininterface/main_interface.cpp
+++ b/modules/gui/qt/maininterface/main_interface.cpp
@@ -144,8 +144,10 @@ MainInterface::MainInterface( intf_thread_t *_p_intf )
     /* Set the other interface settings */
     settings = getSettings();
 
-    /* */
+    /* playlist settings */
     b_playlistDocked = getSettings()->value( "MainWindow/pl-dock-status", true ).toBool();
+    playlistVisible  = getSettings()->value( "MainWindow/playlist-visible", false ).toBool();
+
     m_showRemainingTime = getSettings()->value( "MainWindow/ShowRemainingTime", false ).toBool();
 
     /* Should the UI stays on top of other windows */
diff --git a/modules/gui/qt/maininterface/mainui.cpp b/modules/gui/qt/maininterface/mainui.cpp
index 862a9492b7..f371e4321e 100644
--- a/modules/gui/qt/maininterface/mainui.cpp
+++ b/modules/gui/qt/maininterface/mainui.cpp
@@ -75,8 +75,10 @@ MainUI::MainUI(intf_thread_t *p_intf, MainInterface *mainInterface,  QObject *pa
     /* Get the available interfaces */
     m_extraInterfaces = new VLCVarChoiceModel(p_intf, "intf-add", this);
 
-    /* */
-    m_playlistDocked = m_settings->value( "MainWindow/pl-dock-status", true ).toBool();
+    /* playlist settings */
+    m_playlistDocked   = m_settings->value( "MainWindow/pl-dock-status", true ).toBool();
+    m_playlistVisible  = m_settings->value( "MainWindow/playlist-visible", false ).toBool();
+
     m_showRemainingTime = m_settings->value( "MainWindow/ShowRemainingTime", false ).toBool();
 
     registerQMLTypes();



More information about the vlc-commits mailing list