opt: close main window when exit from tray on macOS

This commit is contained in:
Kingtous
2023-05-02 23:48:49 +08:00
parent a77b795c47
commit 3980e52a88
5 changed files with 41 additions and 7 deletions

View File

@@ -218,6 +218,8 @@ class RustDeskMultiWindowManager {
}
await WindowController.fromWindowId(wId).setPreventClose(false);
await WindowController.fromWindowId(wId).close();
// unregister the sub window in the main window.
unregisterActiveWindow(wId);
} catch (e) {
debugPrint("$e");
return;