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
eventwithpayloadonwindow, 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.