fix, dialog button reconnect cancel, change the interval and try count

Signed-off-by: dignow <linlong1265@gmail.com>
This commit is contained in:
dignow 2023-09-29 22:53:58 +08:00
parent 69062dca16
commit 79a8715c8b

View File

@ -424,11 +424,11 @@ class _ConnectionTabPageState extends State<ConnectionTabPage> {
Future<void> loopCloseWindow() async {
int c = 0;
final windowController = WindowController.fromWindowId(windowId());
while (c < 100 &&
while (c < 20 &&
tabController.state.value.tabs.isEmpty &&
(!await windowController.isHidden())) {
await windowController.close();
await Future.delayed(Duration(milliseconds: 50));
await Future.delayed(Duration(milliseconds: 100));
c++;
}
}