mirror of
https://github.com/rustdesk/rustdesk.git
synced 2025-01-19 16:33:01 +08:00
commit
6fa48b4ada
@ -1671,13 +1671,11 @@ Widget _OptionCheckBox(BuildContext context, String label, String key,
|
||||
var ref = value.obs;
|
||||
onChanged(option) async {
|
||||
if (option != null) {
|
||||
ref.value = option;
|
||||
if (reverse) option = !option;
|
||||
isServer
|
||||
? await mainSetBoolOption(key, option)
|
||||
: await mainSetLocalBoolOption(key, option);
|
||||
ref.value = isServer
|
||||
? mainGetBoolOptionSync(key)
|
||||
: mainGetLocalBoolOptionSync(key);
|
||||
;
|
||||
update?.call();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user