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

@@ -274,7 +274,7 @@ pub fn set_option(key: String, value: String) {
#[cfg(target_os = "macos")]
{
let is_stop = value == "Y";
if is_stop && crate::platform::macos::uninstall(true) {
if is_stop && crate::platform::macos::uninstall_service(true) {
return;
}
}
@@ -283,6 +283,7 @@ pub fn set_option(key: String, value: String) {
if crate::platform::is_installed() {
if value == "Y" {
if crate::platform::uninstall_service(true) {
std::process::exit(0);
return;
}
} else {