Merge pull request #6109 from dignow/fix/macos_close_sesions

Fix/macos close sesions
This commit is contained in:
RustDesk
2023-10-20 14:02:45 +08:00
committed by GitHub
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(