#tauri manual update

3 messages · Page 1 of 1 (latest)

midnight sandal
#

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();
        }
        _ => {}
    }
}
lone light
#

Can you try trigger or trigger_global?

#

using emit in rust will only send the event to the js side but we'll need to send it to the rust side here