mirror of
https://github.com/yuzu-emu/yuzu-android.git
synced 2025-06-14 23:57:58 -05:00
settings: Move runtime and save to parameters
These don't need to be whole new types.
This commit is contained in:
@ -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 {
|
||||
|
Reference in New Issue
Block a user