Skip to main content

Module app

Module app 

Source
Expand description

AppHandle-level helpers: resolving a window by label, toggling its visibility, and emitting a frontend event without letting the failure propagate as a command error.

Functions§

emit_or_warn
Emit event with payload on window, logging (rather than propagating) a failure. Frontend event delivery is best-effort — a failed emit shouldn’t fail the command that triggered it.
get_window
Resolve label’s webview window, or a descriptive error if it isn’t open.
toggle_window_visibility
Show label’s window if hidden, hide it if visible.