diff --git a/src-tauri/src/main.rs b/src-tauri/src/main.rs index 0623ea0c..5ff54f0c 100644 --- a/src-tauri/src/main.rs +++ b/src-tauri/src/main.rs @@ -183,12 +183,12 @@ async fn main() { } } SystemTrayEvent::LeftClick { .. } => { - let window = app.get_window("main").unwrap(); - window.show().unwrap(); + let window = app.get_window("main").expect("Couldn't fetch window"); + window.show().expect("Couldn't show window"); app.tray_handle() .get_item("hide_show") .set_title("Hide") - .unwrap(); + .expect("Couldn't hide window"); } _ => {} })