Merge pull request #4930 from vitor-k/pause-on-unfocus
Pause when in background
This commit is contained in:
commit
377abfa3e6
6 changed files with 39 additions and 0 deletions
|
@ -388,6 +388,8 @@ 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_in_background =
|
||||
ReadSetting("pauseWhenInBackground", false).toBool();
|
||||
|
||||
qt_config->beginGroup("Multiplayer");
|
||||
UISettings::values.nickname = ReadSetting("nickname", "").toString();
|
||||
|
@ -640,6 +642,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("pauseWhenInBackground", UISettings::values.pause_when_in_background, false);
|
||||
|
||||
qt_config->beginGroup("Multiplayer");
|
||||
WriteSetting("nickname", UISettings::values.nickname, "");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue