After the tauri://update event is triggered, the built-in update pop-up window is not displayed.
pub fn handle_menu_event<R: Runtime>(event: WindowMenuEvent<R>) {
match event.menu_item_id() {
"update" => {
event.window().emit_all("tauri://update", Payload { message: "Tauri is awesome!".into() }).unwrap();
}
"open-license" => {
open(&event.window().shell_scope(), FF_NATIVE_LICENSE, None).unwrap();
}
"open-privacy-policy" => {
open(&event.window().shell_scope(), FF_PRIVACY_POLICY_URL, None).unwrap();
}
_ => {}
}
}