Skip to content

Commit

Permalink
fix(core): fix window label in tray icon click event
Browse files Browse the repository at this point in the history
  • Loading branch information
ivangabriele committed Nov 2, 2024
1 parent 07b7755 commit 6343600
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src-tauri/src/system/tray.rs
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,8 @@ pub fn new_tray_icon<R: Runtime>(app_handle: &AppHandle<R>) -> tauri::Result<()>
{
let window = tray
.app_handle()
.get_window(globals::MAIN_TRAY_ICON_ID)
.expect("Could not get window.");
.get_window(globals::MAIN_WINDOW_LABEL)
.expect(format!("Could not get window with label `{}`.", globals::MAIN_WINDOW_LABEL).as_str());

let _ = window.show();
let _ = window.set_focus();
Expand Down

0 comments on commit 6343600

Please sign in to comment.