mirror of
https://github.com/rustdesk/rustdesk.git
synced 2026-11-04 16:35:19 +00:00
opt: close main window when exit from tray on macOS
This commit is contained in:
1 parent
a77b795c47
commit
3980e52a88
5 files changed
+41
-7
No files matched your search
@@ -211,6 +211,7 @@ pub fn uninstall(show_new_window: bool) -> bool {
|
||||
);
|
||||
if uninstalled {
|
||||
crate::ipc::set_option("stop-service", "Y");
|
||||
let _ = crate::ipc::close_all_instances();
|
||||
// leave ipc a little time
|
||||
std::thread::sleep(std::time::Duration::from_millis(300));
|
||||
std::process::Command::new("launchctl")
|
||||
|
||||
Reference in new issue
Block a user