[vlc-devel] [PATCH 12/16] qt: add missing playlist-visible setting retrieval
Fatih Uzunoglu
fuzun54 at outlook.com
Wed Jul 29 23:04:35 CEST 2020
---
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();
--
2.25.1
More information about the vlc-devel
mailing list