Merge pull request #3911 from BreadFish64/fix-setting-change-freeze
citra-qt: optimize settings application
This commit is contained in:
commit
9c1c899243
8 changed files with 3 additions and 9 deletions
|
@ -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();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue