Skip to content

An open-source remote desktop application designed for self-hosting, as an alternative to TeamViewer.

fix lan option reaction

21pages4d0b660c73dd
diff --git a/flutter/lib/desktop/pages/desktop_setting_page.dart b/flutter/lib/desktop/pages/desktop_setting_page.dart
index 468886cb8..2da6ab1e7 100644
--- a/flutter/lib/desktop/pages/desktop_setting_page.dart
+++ b/flutter/lib/desktop/pages/desktop_setting_page.dart
@@ -1537,9 +1537,14 @@ Widget _OptionCheckBox(BuildContext context, String label, String key,
isServer
? await mainSetBoolOption(key, option)
: await mainSetLocalBoolOption(key, option);
- ref.value = isServer
+ final readOption = isServer
? mainGetBoolOptionSync(key)
: mainGetLocalBoolOptionSync(key);
+ if (reverse) {
+ ref.value = !readOption;
+ } else {
+ ref.value = readOption;
+ }
update?.call();
}
}