diff --git a/rpcs3/rpcs3qt/main_window.cpp b/rpcs3/rpcs3qt/main_window.cpp index aa96d9fc5f..2db356e327 100644 --- a/rpcs3/rpcs3qt/main_window.cpp +++ b/rpcs3/rpcs3qt/main_window.cpp @@ -787,11 +787,11 @@ void main_window::RepaintToolBarIcons() if (isFullScreen()) { - ui->toolbar_fullscreen->setIcon(m_icon_fullscreen_on); + ui->toolbar_fullscreen->setIcon(m_icon_fullscreen_off); } else { - ui->toolbar_fullscreen->setIcon(m_icon_fullscreen_off); + ui->toolbar_fullscreen->setIcon(m_icon_fullscreen_on); } ui->sizeSlider->setStyleSheet(ui->sizeSlider->styleSheet().append("QSlider::handle:horizontal{ background: rgba(%1, %2, %3, %4); }") @@ -1213,7 +1213,7 @@ void main_window::CreateConnects() { settings_dialog dlg(guiSettings, emuSettings, tabIndex, this); connect(&dlg, &settings_dialog::GuiSettingsSaveRequest, this, &main_window::SaveWindowState); - connect(&dlg, &settings_dialog::GuiSettingsSyncRequest, [=]() {ConfigureGuiFromSettings(true); }); + connect(&dlg, &settings_dialog::GuiSettingsSyncRequest, this, &main_window::ConfigureGuiFromSettings); connect(&dlg, &settings_dialog::GuiStylesheetRequest, this, &main_window::RequestGlobalStylesheetChange); connect(&dlg, &settings_dialog::GuiRepaintRequest, this, &main_window::RepaintGui); dlg.exec(); @@ -1493,7 +1493,7 @@ void main_window::CreateDockWindows() connect(m_gameListFrame, &game_list_frame::RequestAddRecentGame, this, &main_window::AddRecentAction); } -void main_window::ConfigureGuiFromSettings(bool configureAll) +void main_window::ConfigureGuiFromSettings(bool configure_all) { // Restore GUI state if needed. We need to if they exist. QByteArray geometry = guiSettings->GetValue(GUI::mw_geometry).toByteArray(); @@ -1576,7 +1576,7 @@ void main_window::ConfigureGuiFromSettings(bool configureAll) else ui->setlistModeGridAct->setChecked(true); m_categoryVisibleActGroup->setEnabled(isListMode); - if (configureAll) + if (configure_all) { // Handle log settings m_logFrame->LoadSettings(); diff --git a/rpcs3/rpcs3qt/main_window.h b/rpcs3/rpcs3qt/main_window.h index b64b28e30b..5dc18e1788 100644 --- a/rpcs3/rpcs3qt/main_window.h +++ b/rpcs3/rpcs3qt/main_window.h @@ -90,6 +90,7 @@ private Q_SLOTS: void DecryptSPRXLibraries(); void SaveWindowState(); + void ConfigureGuiFromSettings(bool configure_all = false); protected: void closeEvent(QCloseEvent *event) override; @@ -107,7 +108,6 @@ private: void CreateActions(); void CreateConnects(); void CreateDockWindows(); - void ConfigureGuiFromSettings(bool configureAll = false); void EnableMenus(bool enabled); void InstallPkg(const QString& dropPath = ""); void InstallPup(const QString& dropPath = ""); diff --git a/rpcs3/rpcs3qt/settings_dialog.cpp b/rpcs3/rpcs3qt/settings_dialog.cpp index 5aa375d769..6297df4fd1 100644 --- a/rpcs3/rpcs3qt/settings_dialog.cpp +++ b/rpcs3/rpcs3qt/settings_dialog.cpp @@ -700,7 +700,7 @@ settings_dialog::settings_dialog(std::shared_ptr guiSettings, std: ApplyGuiOptions(true); xgui_settings->Reset(true); xgui_settings->ChangeToConfig(GUI::Default); - Q_EMIT GuiSettingsSyncRequest(); + Q_EMIT GuiSettingsSyncRequest(true); AddConfigs(); AddStylesheets(); AddColoredIcons(); @@ -969,7 +969,7 @@ void settings_dialog::OnApplyConfig() m_currentConfig = ui->combo_configs->currentText(); xgui_settings->SetValue(GUI::m_currentConfig, m_currentConfig); xgui_settings->ChangeToConfig(m_currentConfig); - Q_EMIT GuiSettingsSyncRequest(); + Q_EMIT GuiSettingsSyncRequest(true); } void settings_dialog::OnApplyStylesheet() diff --git a/rpcs3/rpcs3qt/settings_dialog.h b/rpcs3/rpcs3qt/settings_dialog.h index 45e9d4a953..bb10fccf25 100644 --- a/rpcs3/rpcs3qt/settings_dialog.h +++ b/rpcs3/rpcs3qt/settings_dialog.h @@ -24,7 +24,7 @@ public: ~settings_dialog(); int exec(); Q_SIGNALS: - void GuiSettingsSyncRequest(); + void GuiSettingsSyncRequest(bool configure_all); void GuiStylesheetRequest(const QString& path); void GuiSettingsSaveRequest(); void GuiRepaintRequest();