summaryrefslogtreecommitdiffstats
path: root/src/yuzu/configuration/config.cpp
diff options
context:
space:
mode:
authorbunnei <bunneidev@gmail.com>2019-10-10 03:36:51 +0200
committerGitHub <noreply@github.com>2019-10-10 03:36:51 +0200
commitb41692b69b778ce553c03461e4c66d9a3f58175e (patch)
tree787ece68a43190ba17020afe9f57c024b831e534 /src/yuzu/configuration/config.cpp
parentMerge pull request #2915 from vitor-k/patch-1 (diff)
parentyuzu: Pause when in background (diff)
downloadyuzu-b41692b69b778ce553c03461e4c66d9a3f58175e.tar
yuzu-b41692b69b778ce553c03461e4c66d9a3f58175e.tar.gz
yuzu-b41692b69b778ce553c03461e4c66d9a3f58175e.tar.bz2
yuzu-b41692b69b778ce553c03461e4c66d9a3f58175e.tar.lz
yuzu-b41692b69b778ce553c03461e4c66d9a3f58175e.tar.xz
yuzu-b41692b69b778ce553c03461e4c66d9a3f58175e.tar.zst
yuzu-b41692b69b778ce553c03461e4c66d9a3f58175e.zip
Diffstat (limited to 'src/yuzu/configuration/config.cpp')
-rw-r--r--src/yuzu/configuration/config.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/yuzu/configuration/config.cpp b/src/yuzu/configuration/config.cpp
index 4cb27ddb2..f92a4b3c3 100644
--- a/src/yuzu/configuration/config.cpp
+++ b/src/yuzu/configuration/config.cpp
@@ -716,6 +716,8 @@ void Config::ReadUIValues() {
UISettings::values.callout_flags = ReadSetting(QStringLiteral("calloutFlags"), 0).toUInt();
UISettings::values.show_console = ReadSetting(QStringLiteral("showConsole"), false).toBool();
UISettings::values.profile_index = ReadSetting(QStringLiteral("profileIndex"), 0).toUInt();
+ UISettings::values.pause_when_in_background =
+ ReadSetting(QStringLiteral("pauseWhenInBackground"), false).toBool();
ApplyDefaultProfileIfInputInvalid();
@@ -1124,6 +1126,8 @@ void Config::SaveUIValues() {
WriteSetting(QStringLiteral("calloutFlags"), UISettings::values.callout_flags, 0);
WriteSetting(QStringLiteral("showConsole"), UISettings::values.show_console, false);
WriteSetting(QStringLiteral("profileIndex"), UISettings::values.profile_index, 0);
+ WriteSetting(QStringLiteral("pauseWhenInBackground"),
+ UISettings::values.pause_when_in_background, false);
qt_config->endGroup();
}