Merge pull request #4896 from zhaowenlan1779/game-list-fix-3
citra_qt: Misc game list updates/fixes
This commit is contained in:
commit
d6f2bc8c04
8 changed files with 27 additions and 9 deletions
|
@ -319,6 +319,7 @@ void Config::ReadValues() {
|
|||
UISettings::values.game_list_row_2 = UISettings::GameListText{row_2};
|
||||
|
||||
UISettings::values.game_list_hide_no_icon = ReadSetting("hideNoIcon", false).toBool();
|
||||
UISettings::values.game_list_single_line_mode = ReadSetting("singleLineMode", false).toBool();
|
||||
qt_config->endGroup();
|
||||
|
||||
qt_config->beginGroup("Paths");
|
||||
|
@ -589,6 +590,7 @@ void Config::SaveValues() {
|
|||
WriteSetting("row1", static_cast<int>(UISettings::values.game_list_row_1), 2);
|
||||
WriteSetting("row2", static_cast<int>(UISettings::values.game_list_row_2), 0);
|
||||
WriteSetting("hideNoIcon", UISettings::values.game_list_hide_no_icon, false);
|
||||
WriteSetting("singleLineMode", UISettings::values.game_list_single_line_mode, false);
|
||||
qt_config->endGroup();
|
||||
|
||||
qt_config->beginGroup("Paths");
|
||||
|
|
|
@ -47,6 +47,7 @@ void ConfigureUi::SetConfiguration() {
|
|||
ui->row_2_text_combobox->setCurrentIndex(static_cast<int>(UISettings::values.game_list_row_2) +
|
||||
1);
|
||||
ui->toggle_hide_no_icon->setChecked(UISettings::values.game_list_hide_no_icon);
|
||||
ui->toggle_single_line_mode->setChecked(UISettings::values.game_list_single_line_mode);
|
||||
}
|
||||
|
||||
void ConfigureUi::ApplyConfiguration() {
|
||||
|
@ -59,6 +60,7 @@ void ConfigureUi::ApplyConfiguration() {
|
|||
UISettings::values.game_list_row_2 =
|
||||
static_cast<UISettings::GameListText>(ui->row_2_text_combobox->currentIndex() - 1);
|
||||
UISettings::values.game_list_hide_no_icon = ui->toggle_hide_no_icon->isChecked();
|
||||
UISettings::values.game_list_single_line_mode = ui->toggle_single_line_mode->isChecked();
|
||||
}
|
||||
|
||||
void ConfigureUi::OnLanguageChanged(int index) {
|
||||
|
|
|
@ -185,6 +185,13 @@
|
|||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QCheckBox" name="toggle_single_line_mode">
|
||||
<property name="text">
|
||||
<string>Single Line Mode</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
</layout>
|
||||
</item>
|
||||
</layout>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue