Add option to enable pause when on background

This commit is contained in:
vitor-k 2019-09-13 23:01:12 -03:00
parent 7224ec57f6
commit 356fd60520
5 changed files with 23 additions and 9 deletions

View file

@ -384,6 +384,7 @@ void Config::ReadValues() {
UISettings::values.first_start = ReadSetting("firstStart", true).toBool();
UISettings::values.callout_flags = ReadSetting("calloutFlags", 0).toUInt();
UISettings::values.show_console = ReadSetting("showConsole", false).toBool();
UISettings::values.pause_when_on_background = ReadSetting("pauseWhenOnBackground", false).toBool();
qt_config->beginGroup("Multiplayer");
UISettings::values.nickname = ReadSetting("nickname", "").toString();
@ -636,6 +637,7 @@ void Config::SaveValues() {
WriteSetting("firstStart", UISettings::values.first_start, true);
WriteSetting("calloutFlags", UISettings::values.callout_flags, 0);
WriteSetting("showConsole", UISettings::values.show_console, false);
WriteSetting("pauseWhenOnBackground", UISettings::values.pause_when_on_background, false);
qt_config->beginGroup("Multiplayer");
WriteSetting("nickname", UISettings::values.nickname, "");