Skip to content

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

Add comment

dignow3581e0beedc3
diff --git a/flutter/lib/common.dart b/flutter/lib/common.dart
index 2bd02fbf6..858756ed2 100644
--- a/flutter/lib/common.dart
+++ b/flutter/lib/common.dart
@@ -996,6 +996,7 @@ void msgBox(SessionID sessionId, String type, String title, String text,
}));
}
if (reconnect != null && title == "Connection Error") {
+ // `enabled` is used to disable the dialog button once the button is clicked.
final enabled = true.obs;
final button = Obx(
() => dialogButton(
@@ -1003,6 +1004,7 @@ void msgBox(SessionID sessionId, String type, String title, String text,
isOutline: true,
onPressed: enabled.isTrue
? () {
+ // Disable the button
enabled.value = false;
reconnect(dialogManager, sessionId, false);
}