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:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user