workaround of exit tray in windows

This commit is contained in:
rustdesk 2023-07-02 11:22:52 +08:00
parent 2f16d4c662
commit d9f58ed4df

View File

@ -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();