Port #3911 from Citra: "Optimize settings application"

This commit is contained in:
fearlessTobi
2018-07-29 14:37:18 +02:00
parent 458fdda700
commit b97739029b
5 changed files with 3 additions and 6 deletions

View File

@ -723,10 +723,12 @@ void GMainWindow::ToggleWindowMode() {
void GMainWindow::OnConfigure() {
ConfigureDialog configureDialog(this);
auto old_theme = UISettings::values.theme;
auto result = configureDialog.exec();
if (result == QDialog::Accepted) {
configureDialog.applyConfiguration();
UpdateUITheme();
if (UISettings::values.theme != old_theme)
UpdateUITheme();
config->Save();
}
}