We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 07b7755 commit 6343600Copy full SHA for 6343600
src-tauri/src/system/tray.rs
@@ -31,8 +31,8 @@ pub fn new_tray_icon<R: Runtime>(app_handle: &AppHandle<R>) -> tauri::Result<()>
31
{
32
let window = tray
33
.app_handle()
34
- .get_window(globals::MAIN_TRAY_ICON_ID)
35
- .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());
36
37
let _ = window.show();
38
let _ = window.set_focus();
0 commit comments