An open-source remote desktop application designed for self-hosting, as an alternative to TeamViewer.
Rust androidanydeskdartflatpakflutterflutter-appsioslinuxmacosp2prdpremote-controlremote-desktoprustrust-langteamviewervncwaylandwindows
check isDisableAccount and isDisableAb before pull ab / group
rustdesk3dc6e576df11
diff --git a/flutter/lib/models/ab_model.dart b/flutter/lib/models/ab_model.dartindex af4a18a9c..3ba0bd149 100644--- a/flutter/lib/models/ab_model.dart+++ b/flutter/lib/models/ab_model.dart@@ -110,6 +110,7 @@ class AbModel {Future<void> _pullAb({required ForcePullAb? force, required bool quiet}) async {+ if (bind.isDisableAb()) return;debugPrint("pullAb, force: $force, quiet: $quiet");if (!gFFI.userModel.isLogin) return;if (force == null && listInitialized && current.initialized) return;diff --git a/flutter/lib/models/user_model.dart b/flutter/lib/models/user_model.dartindex 55059460b..04b7ebb5b 100644--- a/flutter/lib/models/user_model.dart+++ b/flutter/lib/models/user_model.dart@@ -23,6 +23,7 @@ class UserModel {UserModel(this.parent);void refreshCurrentUser() async {+ if (bind.isDisableAccount()) return;final token = bind.mainGetLocalOption(key: 'access_token');if (token == '') {await updateOtherModels();