1
0
Fork 1
forked from suyu/suyu

ui_settings: Add UI setting for input profile index

This commit is contained in:
Zach Hilman 2018-11-22 15:25:12 -05:00
parent db3200b515
commit 281b64daf4
2 changed files with 5 additions and 0 deletions

View file

@ -506,6 +506,7 @@ void Config::ReadValues() {
UISettings::values.first_start = qt_config->value("firstStart", true).toBool();
UISettings::values.callout_flags = qt_config->value("calloutFlags", 0).toUInt();
UISettings::values.show_console = qt_config->value("showConsole", false).toBool();
UISettings::values.profile_index = qt_config->value("profileIndex", 0).toUInt();
qt_config->endGroup();
}
@ -695,6 +696,7 @@ void Config::SaveValues() {
qt_config->setValue("firstStart", UISettings::values.first_start);
qt_config->setValue("calloutFlags", UISettings::values.callout_flags);
qt_config->setValue("showConsole", UISettings::values.show_console);
qt_config->setValue("profileIndex", UISettings::values.profile_index);
qt_config->endGroup();
}

View file

@ -58,6 +58,9 @@ struct Values {
// logging
bool show_console;
// Controllers
uint32_t profile_index;
// Game List
bool show_unknown;
bool show_add_ons;