An open-source remote desktop application designed for self-hosting, as an alternative to TeamViewer.
Rust androidanydeskdartflatpakflutterflutter-appsioslinuxmacosp2prdpremote-controlremote-desktoprustrust-langteamviewervncwaylandwindows
clear the accessible devices tab when retrieving accessible devices disabled (#11913)
21pagesec0456e606c1
diff --git a/flutter/lib/models/group_model.dart b/flutter/lib/models/group_model.dartindex 67947f5a8..534e897e9 100644--- a/flutter/lib/models/group_model.dart+++ b/flutter/lib/models/group_model.dart@@ -47,7 +47,10 @@ class GroupModel {}try {await _pull();- } catch (_) {}+ _tryHandlePullError();+ } catch (e) {+ print("pull accessibles error: $e");+ }groupLoading.value = false;initialized = true;platformFFI.tryHandle({'name': LoadEvent.group});@@ -361,4 +364,14 @@ class GroupModel {void removePeerUpdateListener(String key) {_peerIdUpdateListeners.remove(key);}++ void _tryHandlePullError() {+ String errorMessage = groupLoadError.value;+ // The error message is "Retrieving accessible devices is disabled."+ if (errorMessage.toLowerCase().contains('disabled')) {+ users.clear();+ peers.clear();+ deviceGroups.clear();+ }+ }}