fix, macos, remote fullscreen state, debug

Signed-off-by: dignow <linlong1265@gmail.com>
This commit is contained in:
dignow 2023-09-07 22:26:32 +08:00
parent 5293e3b277
commit 296ebd0341
2 changed files with 2 additions and 5 deletions

View File

@ -112,10 +112,7 @@ class _ConnectionTabPageState extends State<ConnectionTabPage> {
windowOnTop(windowId());
if (tabController.length == 0) {
if (Platform.isMacOS && stateGlobal.closeOnFullscreen) {
Timer(
Duration(milliseconds: 300),
() async => await WindowController.fromWindowId(windowId())
.setFullscreen(true));
stateGlobal.setFullscreen(true);
}
}
ConnectionTypeState.init(id);

View File

@ -591,7 +591,7 @@ class WindowActionPanelState extends State<WindowActionPanel>
if (!await checkFullscreen() || _macOSCheckRestoreCounter >= 30) {
_macOSCheckRestoreTimer?.cancel();
_macOSCheckRestoreTimer = null;
Timer(Duration(milliseconds: 500), () async => await closeFunc());
Timer(Duration(milliseconds: 700), () async => await closeFunc());
}
});
}