summaryrefslogtreecommitdiffstats
path: root/src/yuzu/main.cpp
diff options
context:
space:
mode:
authorfearlessTobi <thm.frey@gmail.com>2018-07-29 14:37:18 +0200
committerfearlessTobi <thm.frey@gmail.com>2018-07-29 14:37:18 +0200
commitb97739029be5c4b06b8336ebf0a4b1f25db68647 (patch)
treea2efbba82071646fe8c79087fa9c1d424787d3fb /src/yuzu/main.cpp
parentMerge pull request #847 from lioncash/ncm (diff)
downloadyuzu-b97739029be5c4b06b8336ebf0a4b1f25db68647.tar
yuzu-b97739029be5c4b06b8336ebf0a4b1f25db68647.tar.gz
yuzu-b97739029be5c4b06b8336ebf0a4b1f25db68647.tar.bz2
yuzu-b97739029be5c4b06b8336ebf0a4b1f25db68647.tar.lz
yuzu-b97739029be5c4b06b8336ebf0a4b1f25db68647.tar.xz
yuzu-b97739029be5c4b06b8336ebf0a4b1f25db68647.tar.zst
yuzu-b97739029be5c4b06b8336ebf0a4b1f25db68647.zip
Diffstat (limited to '')
-rw-r--r--src/yuzu/main.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/yuzu/main.cpp b/src/yuzu/main.cpp
index 96998643e..809670c7a 100644
--- a/src/yuzu/main.cpp
+++ b/src/yuzu/main.cpp
@@ -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();
}
}