Merge pull request #3911 from BreadFish64/fix-setting-change-freeze

citra-qt: optimize settings application
This commit is contained in:
Weiyi Wang
2018-07-03 11:08:42 +03:00
committed by GitHub
8 changed files with 3 additions and 9 deletions

View File

@@ -1153,10 +1153,12 @@ void GMainWindow::OnConfigure() {
ConfigureDialog configureDialog(this);
connect(&configureDialog, &ConfigureDialog::languageChanged, this,
&GMainWindow::OnLanguageChanged);
auto old_theme = UISettings::values.theme;
auto result = configureDialog.exec();
if (result == QDialog::Accepted) {
configureDialog.applyConfiguration();
UpdateUITheme();
if (UISettings::values.theme != old_theme)
UpdateUITheme();
emit UpdateThemedIcons();
SyncMenuUISettings();
config->Save();