mirror of
https://github.com/rustdesk/rustdesk.git
synced 2024-11-27 23:19:02 +08:00
workaround of exit tray in windows
This commit is contained in:
parent
2f16d4c662
commit
d9f58ed4df
@ -101,10 +101,12 @@ pub fn make_tray() -> hbb_common::ResultType<()> {
|
||||
|
||||
if let Ok(event) = menu_channel.try_recv() {
|
||||
if event.id == quit_i.id() {
|
||||
/* failed in windows, seems no permission to check system process
|
||||
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