mirror of
https://github.com/rustdesk/rustdesk.git
synced 2025-12-12 19:17:58 +00:00
opt: close main window when exit from tray on macOS
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user