mirror of
https://github.com/clash-verge-rev/clash-verge-rev.git
synced 2024-11-16 03:32:36 +08:00
chore: update
This commit is contained in:
parent
52d5f2c992
commit
8a3a094414
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue
Block a user