mirror of
https://github.com/RetroDECK/Duckstation.git
synced 2024-11-23 06:15:38 +00:00
Qt: Fix status bar toggle not saving
This commit is contained in:
parent
238152ae88
commit
bdd98281fc
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue