Skip to main content

tray_toggle_popover

Function tray_toggle_popover 

Source
pub fn tray_toggle_popover(app: AppHandle, state: State<'_, TrayState>)
Expand description

Tray-popover toggle command (M-TRAY.0 / AUT-249).

Resolves the bound popover window by its tauri.conf.json label (tray-popover), advances the state machine, then performs the corresponding show()/hide() on the window. Returning () rather than Result matches the existing player_* commands’ shape — failure paths log via tracing::warn! so the click is never user-facing silent.