chore: update

This commit is contained in:
huzibaca 2024-09-23 17:15:28 +08:00
parent 4d57c64b0d
commit 961b86dcd2

View File

@ -53,16 +53,12 @@ impl Tray {
..
} = event
{
let _ = tray.set_visible(false);
let app = tray.app_handle();
match tray_event.as_str() {
"system_proxy" => feat::toggle_system_proxy(),
"tun_mode" => feat::toggle_tun_mode(),
"main_window" => resolve::create_window(),
_ => {}
}
let _ = tray.set_visible(true);
}
});
tray.on_menu_event(on_menu_event);