fix, macos, close sessions, confirm dialog and then hide

Signed-off-by: dignow <linlong1265@gmail.com>
This commit is contained in:
dignow
2023-10-20 09:15:53 +08:00
parent 4a03b3d7d9
commit 676b02c8de
5 changed files with 36 additions and 26 deletions

View File

@@ -125,9 +125,12 @@ class _ConnectionTabPageState extends State<ConnectionTabPage> {
windowOnTop(windowId());
tryMoveToScreenAndSetFullscreen(screenRect);
if (tabController.length == 0) {
if (Platform.isMacOS && stateGlobal.closeOnFullscreen) {
// Show the hidden window.
if (Platform.isMacOS && stateGlobal.closeOnFullscreen == true) {
stateGlobal.setFullscreen(true);
}
// Reset the state
stateGlobal.closeOnFullscreen = null;
}
ConnectionTypeState.init(id);
_toolbarState.setShow(