refactor tray uninstall service

This commit is contained in:
rustdesk
2023-06-09 22:02:25 +08:00
parent 1ad5d0b726
commit 644da37a4f
5 changed files with 6 additions and 7 deletions

View File

@@ -91,10 +91,8 @@ pub fn make_tray() -> hbb_common::ResultType<()> {
if let Ok(event) = menu_channel.try_recv() {
if event.id == quit_i.id() {
#[cfg(target_os = "macos")]
crate::platform::macos::uninstall(false);
#[cfg(not(target_os = "macos"))]
crate::platform::uninstall_service(false);
*control_flow = ControlFlow::Exit;
} else if event.id == open_i.id() {
open_func();
}