mirror of
https://github.com/rustdesk/rustdesk.git
synced 2026-04-12 16:31:27 +03:00
fix: privacy mode, msgbox sometimes does not show (#12117)
Signed-off-by: fufesou <linlong1266@gmail.com>
This commit is contained in:
@@ -991,17 +991,12 @@ class FfiModel with ChangeNotifier {
|
|||||||
String link,
|
String link,
|
||||||
bool hasRetry,
|
bool hasRetry,
|
||||||
OverlayDialogManager dialogManager) {
|
OverlayDialogManager dialogManager) {
|
||||||
if (text == 'no_need_privacy_mode_no_physical_displays_tip' ||
|
// There are display changes on the remote side,
|
||||||
text == 'Enter privacy mode') {
|
// which will cause some messages to refresh the canvas and dismiss dialogs.
|
||||||
// There are display changes on the remote side,
|
// So we add a delay here to ensure the dialog is displayed.
|
||||||
// which will cause some messages to refresh the canvas and dismiss dialogs.
|
Future.delayed(Duration(milliseconds: 3000), () {
|
||||||
// So we add a delay here to ensure the dialog is displayed.
|
|
||||||
Future.delayed(Duration(milliseconds: 3000), () {
|
|
||||||
showMsgBox(sessionId, type, title, text, link, hasRetry, dialogManager);
|
|
||||||
});
|
|
||||||
} else {
|
|
||||||
showMsgBox(sessionId, type, title, text, link, hasRetry, dialogManager);
|
showMsgBox(sessionId, type, title, text, link, hasRetry, dialogManager);
|
||||||
}
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
_updateSessionWidthHeight(SessionID sessionId) {
|
_updateSessionWidthHeight(SessionID sessionId) {
|
||||||
|
|||||||
Reference in New Issue
Block a user