mirror of
https://github.com/rustdesk/rustdesk.git
synced 2024-12-12 18:29:10 +08:00
exit directly if no --server for --tray
This commit is contained in:
parent
f22aa0c97e
commit
9677bd1863
@ -96,6 +96,10 @@ pub fn make_tray() -> hbb_common::ResultType<()> {
|
||||
|
||||
if let Ok(event) = menu_channel.try_recv() {
|
||||
if event.id == quit_i.id() {
|
||||
if !crate::check_process("--server", false) {
|
||||
*control_flow = ControlFlow::Exit;
|
||||
return;
|
||||
}
|
||||
crate::platform::uninstall_service(false);
|
||||
} else if event.id == open_i.id() {
|
||||
open_func();
|
||||
|
Loading…
Reference in New Issue
Block a user