settings: Move runtime and save to parameters

These don't need to be whole new types.
This commit is contained in:
lat9nq
2023-05-09 16:21:24 -04:00
parent df2bd251fa
commit cdb5dea269
2 changed files with 89 additions and 68 deletions

View File

@ -77,11 +77,10 @@ void SetPerGameSetting(QComboBox* combobox,
void SetHighlight(QWidget* widget, bool highlighted);
// Sets up a QCheckBox like a tristate one, given a Setting
template <bool ranged, bool save, bool runtime_modifiable>
void SetColoredTristate(
QCheckBox* checkbox,
const Settings::SwitchableSetting<bool, ranged, save, runtime_modifiable>& setting,
CheckState& tracker) {
template <bool ranged>
void SetColoredTristate(QCheckBox* checkbox,
const Settings::SwitchableSetting<bool, ranged>& setting,
CheckState& tracker) {
if (setting.UsingGlobal()) {
tracker = CheckState::Global;
} else {