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 let Ok(event) = menu_channel.try_recv() {
|
||||||
if event.id == quit_i.id() {
|
if event.id == quit_i.id() {
|
||||||
|
/* failed in windows, seems no permission to check system process
|
||||||
if !crate::check_process("--server", false) {
|
if !crate::check_process("--server", false) {
|
||||||
*control_flow = ControlFlow::Exit;
|
*control_flow = ControlFlow::Exit;
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
*/
|
||||||
crate::platform::uninstall_service(false);
|
crate::platform::uninstall_service(false);
|
||||||
} else if event.id == open_i.id() {
|
} else if event.id == open_i.id() {
|
||||||
open_func();
|
open_func();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user