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
commit 9c1c899243
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
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();