From bdd98281fce39b032480a489d5ae4b20753d64c8 Mon Sep 17 00:00:00 2001 From: Connor McLaughlin Date: Sat, 19 Sep 2020 00:31:02 +1000 Subject: [PATCH] Qt: Fix status bar toggle not saving --- src/duckstation-qt/mainwindow.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/duckstation-qt/mainwindow.cpp b/src/duckstation-qt/mainwindow.cpp index 5ec59f656..af32b1eb2 100644 --- a/src/duckstation-qt/mainwindow.cpp +++ b/src/duckstation-qt/mainwindow.cpp @@ -326,8 +326,8 @@ void MainWindow::onViewToolbarActionToggled(bool checked) void MainWindow::onViewStatusBarActionToggled(bool checked) { + m_host_interface->SetBoolSettingValue("UI", "ShowStatusBar", checked); m_ui.statusBar->setVisible(checked); - saveStateToConfig(); } void MainWindow::onViewGameListActionTriggered() @@ -466,6 +466,10 @@ void MainWindow::setupAdditionalUi() { setWindowTitle(getWindowTitle()); + const bool status_bar_visible = m_host_interface->GetBoolSettingValue("UI", "ShowStatusBar", true); + m_ui.actionViewStatusBar->setChecked(status_bar_visible); + m_ui.statusBar->setVisible(status_bar_visible); + m_game_list_widget = new GameListWidget(m_ui.mainContainer); m_game_list_widget->initialize(m_host_interface); m_ui.mainContainer->insertWidget(0, m_game_list_widget);