fix, dialog button reconnect cancel, change the interval and try count
Signed-off-by: dignow <linlong1265@gmail.com>
This commit is contained in:
parent
69062dca16
commit
79a8715c8b
@ -424,11 +424,11 @@ class _ConnectionTabPageState extends State<ConnectionTabPage> {
|
|||||||
Future<void> loopCloseWindow() async {
|
Future<void> loopCloseWindow() async {
|
||||||
int c = 0;
|
int c = 0;
|
||||||
final windowController = WindowController.fromWindowId(windowId());
|
final windowController = WindowController.fromWindowId(windowId());
|
||||||
while (c < 100 &&
|
while (c < 20 &&
|
||||||
tabController.state.value.tabs.isEmpty &&
|
tabController.state.value.tabs.isEmpty &&
|
||||||
(!await windowController.isHidden())) {
|
(!await windowController.isHidden())) {
|
||||||
await windowController.close();
|
await windowController.close();
|
||||||
await Future.delayed(Duration(milliseconds: 50));
|
await Future.delayed(Duration(milliseconds: 100));
|
||||||
c++;
|
c++;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user