chore: Remove Debug Info

This commit is contained in:
Pylogmon 2023-11-26 18:49:48 +08:00
parent d8d75b4afa
commit c0582fde66

View File

@ -145,16 +145,17 @@ impl Tray {
Ok(())
}
pub fn on_left_click(app_handle: &AppHandle) {
let tray_event = { Config::verge().latest().tray_event.clone() };
let tray_event = tray_event.unwrap_or("main_window".into());
println!("{tray_event}");
match tray_event.as_str() {
"system_proxy" => feat::toggle_system_proxy(),
"tun_mode" => feat::toggle_tun_mode(),
_ => resolve::create_window(app_handle),
}
}
pub fn on_system_tray_event(app_handle: &AppHandle, event: SystemTrayEvent) {
match event {
#[cfg(not(target_os = "linux"))]