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:
@@ -1144,7 +1144,7 @@ pub fn uninstall_service(show_new_window: bool) -> bool {
|
||||
if show_new_window {
|
||||
run_me_with(2);
|
||||
}
|
||||
std::process::exit(0);
|
||||
true
|
||||
}
|
||||
|
||||
pub fn install_service() -> bool {
|
||||
|
||||
@@ -182,7 +182,7 @@ pub fn is_installed_daemon(prompt: bool) -> bool {
|
||||
false
|
||||
}
|
||||
|
||||
pub fn uninstall(show_new_window: bool) -> bool {
|
||||
pub fn uninstall_service(show_new_window: bool) -> bool {
|
||||
// to-do: do together with win/linux about refactory start/stop service
|
||||
if !is_installed_daemon(false) {
|
||||
return false;
|
||||
|
||||
@@ -2171,7 +2171,7 @@ pub fn uninstall_service(show_new_window: bool) -> bool {
|
||||
return true;
|
||||
}
|
||||
run_after_run_cmds(!show_new_window);
|
||||
std::process::exit(0);
|
||||
true
|
||||
}
|
||||
|
||||
pub fn install_service() -> bool {
|
||||
|
||||
Reference in New Issue
Block a user