fix error popup on startup

This commit is contained in:
jfmonty2 committed 2024-06-03 01:33:35 -04:00
1 parent 816bd7db00
commit 0491cb5790
9 files changed
+74 -103

No files matched your search

+4 -1
View File
@@ -15,7 +15,7 @@ use crate::state::AppState;
pub fn setup(app: &App) -> tauri::Result<()> {
let show_hide = MenuItemBuilder::with_id("show_hide", "Show/Hide").build(app)?;
let show_hide = MenuItemBuilder::with_id("show_hide", "Show").build(app)?;
let exit = MenuItemBuilder::with_id("exit", "Exit").build(app)?;
let menu = MenuBuilder::new(app)
@@ -26,6 +26,9 @@ pub fn setup(app: &App) -> tauri::Result<()> {
tray.set_menu(Some(menu))?;
tray.on_menu_event(handle_event);
// stash this so we can find it later to change the text
app.manage(show_hide);
Ok(())
}