desktop close connection tab (remote page)

This commit is contained in:
csf
2022-08-16 21:27:21 +08:00
parent c9c40508e7
commit ce050e250d
8 changed files with 33 additions and 12 deletions

View File

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