game_list: Only reload game list after relevant settings changed

Prevents unnecessary reloads on every configuration operation.
This commit is contained in:
Zach Hilman 2018-11-03 20:38:39 -04:00
parent 4a42f5f99c
commit cfe85bdb3d
5 changed files with 28 additions and 1 deletions

View file

@ -19,6 +19,9 @@ ConfigureGeneral::ConfigureGeneral(QWidget* parent)
this->setConfiguration();
connect(ui->toggle_deepscan, &QCheckBox::stateChanged, this,
[] { UISettings::values.is_game_list_reload_pending.exchange(true); });
ui->use_cpu_jit->setEnabled(!Core::System::GetInstance().IsPoweredOn());
ui->use_docked_mode->setEnabled(!Core::System::GetInstance().IsPoweredOn());
}