|
|
@ -36,6 +36,16 @@ ConfigureGameList::ConfigureGameList(QWidget* parent)
|
|
|
|
InitializeRowComboBoxes();
|
|
|
|
InitializeRowComboBoxes();
|
|
|
|
|
|
|
|
|
|
|
|
this->setConfiguration();
|
|
|
|
this->setConfiguration();
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// Force game list reload if any of the relevant settings are changed.
|
|
|
|
|
|
|
|
connect(ui->show_unknown, &QCheckBox::stateChanged, this,
|
|
|
|
|
|
|
|
&ConfigureGameList::RequestGameListUpdate);
|
|
|
|
|
|
|
|
connect(ui->icon_size_combobox, QOverload<int>::of(&QComboBox::currentIndexChanged), this,
|
|
|
|
|
|
|
|
&ConfigureGameList::RequestGameListUpdate);
|
|
|
|
|
|
|
|
connect(ui->row_1_text_combobox, QOverload<int>::of(&QComboBox::currentIndexChanged), this,
|
|
|
|
|
|
|
|
&ConfigureGameList::RequestGameListUpdate);
|
|
|
|
|
|
|
|
connect(ui->row_2_text_combobox, QOverload<int>::of(&QComboBox::currentIndexChanged), this,
|
|
|
|
|
|
|
|
&ConfigureGameList::RequestGameListUpdate);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
ConfigureGameList::~ConfigureGameList() = default;
|
|
|
|
ConfigureGameList::~ConfigureGameList() = default;
|
|
|
@ -49,6 +59,10 @@ void ConfigureGameList::applyConfiguration() {
|
|
|
|
Settings::Apply();
|
|
|
|
Settings::Apply();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
void ConfigureGameList::RequestGameListUpdate() {
|
|
|
|
|
|
|
|
UISettings::values.is_game_list_reload_pending.exchange(true);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
void ConfigureGameList::setConfiguration() {
|
|
|
|
void ConfigureGameList::setConfiguration() {
|
|
|
|
ui->show_unknown->setChecked(UISettings::values.show_unknown);
|
|
|
|
ui->show_unknown->setChecked(UISettings::values.show_unknown);
|
|
|
|
ui->show_add_ons->setChecked(UISettings::values.show_add_ons);
|
|
|
|
ui->show_add_ons->setChecked(UISettings::values.show_add_ons);
|
|
|
|