mirror of
https://github.com/weyne85/rustdesk.git
synced 2025-10-29 17:00:05 +00:00
refactor tray uninstall service
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user