From 51459e1f5b8495ad3254b01749e73a68fb6c9cad Mon Sep 17 00:00:00 2001 From: Filip <44017905+JoshTheSnom@users.noreply.github.com> Date: Thu, 2 Feb 2023 14:31:54 +0100 Subject: [PATCH] Converted more unwraps to expects --- src-tauri/src/main.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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"); } _ => {} })