add showToast & dialog clickMaskDismiss

This commit is contained in:
csf
2022-08-15 14:39:31 +08:00
parent f9a2047ec5
commit da4c218ea3
9 changed files with 79 additions and 39 deletions

View File

@@ -287,7 +287,7 @@ class FfiModel with ChangeNotifier {
bind.sessionReconnect(id: id);
clearPermissions();
dialogManager.showLoading(translate('Connecting...'),
cancelToClose: true);
onCancel: backToHomePage);
});
_reconnects *= 2;
} else {
@@ -335,7 +335,7 @@ class FfiModel with ChangeNotifier {
if (displays.length > 0) {
parent.target?.dialogManager.showLoading(
translate('Connected, waiting for image...'),
cancelToClose: true);
onCancel: backToHomePage);
_waitForImage = true;
_reconnects = 1;
}