Skip to main content

install_tray

Function install_tray 

Source
pub fn install_tray(
    app: &AppHandle,
    state: Arc<LifecycleState>,
    before_quit: Arc<dyn Fn() + Send + Sync>,
) -> Result<(), LifecycleError>
Expand description

Adds the tray icon with Open and Quit items. Does nothing when the icon already exists.