Skip to content

Commit

Permalink
Converted more unwraps to expects
Browse files Browse the repository at this point in the history
  • Loading branch information
JoshTheSnom authored and medzernik committed Feb 3, 2023
1 parent 32b10c8 commit 51459e1
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src-tauri/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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");
}
_ => {}
})
Expand Down

0 comments on commit 51459e1

Please sign in to comment.