Static zng_app::EXIT_REQUESTED_EVENT

source ยท
pub static EXIT_REQUESTED_EVENT: Event<ExitRequestedArgs>
Expand description

Cancellable event raised when app process exit is requested.

App exit can be requested using the APP service or the EXIT_CMD, some extensions also request exit if some conditions are met, for example, WindowManager requests it after the last window is closed.

Requesting propagation().stop() on this event cancels the exit.