mirror of
https://github.com/redphx/better-xcloud.git
synced 2025-08-10 07:07:46 +02:00
Support suggesting boolean settings
This commit is contained in:
@@ -140,6 +140,10 @@ export class SettingElement {
|
||||
!(e as any).ignoreOnChange && onChange(e, (e.target as HTMLInputElement).checked);
|
||||
});
|
||||
|
||||
($control as any).setValue = (value: boolean) => {
|
||||
$control.checked = !!value;
|
||||
};
|
||||
|
||||
return $control;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user