fix: sub window failed to start or freeze issue

This commit is contained in:
Kingtous
2022-10-22 22:43:26 +08:00
parent 3f28de5fe3
commit 74b03afe5c
5 changed files with 10 additions and 4 deletions

View File

@@ -64,6 +64,9 @@ class _FileManagerTabPageState extends State<FileManagerTabPage> {
tabController.clear();
}
});
Future.delayed(Duration.zero, () {
restoreWindowPosition(WindowType.FileTransfer, windowId: windowId());
});
}
@override

View File

@@ -72,6 +72,9 @@ class _PortForwardTabPageState extends State<PortForwardTabPage> {
tabController.clear();
}
});
Future.delayed(Duration.zero, () {
restoreWindowPosition(WindowType.PortForward, windowId: windowId());
});
}
@override

View File

@@ -92,6 +92,9 @@ class _ConnectionTabPageState extends State<ConnectionTabPage> {
}
_update_remote_count();
});
Future.delayed(Duration.zero, () {
restoreWindowPosition(WindowType.RemoteDesktop, windowId: windowId());
});
}
@override