Parameters for tray.setClickAction.
Set the process-wide left-click action, even before create. event is the default and emits the existing click events. toggleMainWindow hides a visible, non-minimized standalone main window, or shows, restores and requests focus otherwise, without page execution or the old click events. A double-click performs one toggle. Pending clicks are cancelled on every setter call; the latest successful caller wins. Shell recreation preserves this setting; destroy resets it. Fails with PANEL_MODE_UNSUPPORTED in panels. Remove legacy click handlers that issue window commands before enabling native actions; already queued page events cannot be recalled. The OS may refuse foreground activation.
Parameters for
tray.setClickAction. Set the process-wide left-click action, even beforecreate.eventis the default and emits the existing click events.toggleMainWindowhides a visible, non-minimized standalone main window, or shows, restores and requests focus otherwise, without page execution or the old click events. A double-click performs one toggle. Pending clicks are cancelled on every setter call; the latest successful caller wins. Shell recreation preserves this setting;destroyresets it. Fails withPANEL_MODE_UNSUPPORTEDin panels. Remove legacy click handlers that issue window commands before enabling native actions; already queued page events cannot be recalled. The OS may refuse foreground activation.