mirror of
https://github.com/rustdesk/rustdesk.git
synced 2026-04-05 16:31:27 +03:00
@@ -996,6 +996,7 @@ void msgBox(SessionID sessionId, String type, String title, String text,
|
|||||||
}));
|
}));
|
||||||
}
|
}
|
||||||
if (reconnect != null && title == "Connection Error") {
|
if (reconnect != null && title == "Connection Error") {
|
||||||
|
// `enabled` is used to disable the dialog button once the button is clicked.
|
||||||
final enabled = true.obs;
|
final enabled = true.obs;
|
||||||
final button = Obx(
|
final button = Obx(
|
||||||
() => dialogButton(
|
() => dialogButton(
|
||||||
@@ -1003,6 +1004,7 @@ void msgBox(SessionID sessionId, String type, String title, String text,
|
|||||||
isOutline: true,
|
isOutline: true,
|
||||||
onPressed: enabled.isTrue
|
onPressed: enabled.isTrue
|
||||||
? () {
|
? () {
|
||||||
|
// Disable the button
|
||||||
enabled.value = false;
|
enabled.value = false;
|
||||||
reconnect(dialogManager, sessionId, false);
|
reconnect(dialogManager, sessionId, false);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user