1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
// SPDX-License-Identifier: MPL-2.0
// SPDX-FileCopyrightText: 2026 FernTech
//! Where a quit comes from: [`QuitSource`].
/// Where a quit request came from, read by a close guard or the
/// application's [`on_quit_requested`] guard through
/// [`EventContext::quit_source`](crate::widget::EventContext::quit_source).
///
/// A guard that asks the user before closing can skip its dialog when the
/// user is not there to answer: for [`SessionEnd`](Self::SessionEnd) and
/// [`Signal`](Self::Signal) it saves directly and lets the close go ahead,
/// as AppKit and Qt applications do when the session is ending.
///
/// [`on_quit_requested`]: https://docs.rs/teksilo/latest/teksilo/struct.TeksiloAppBuilder.html#method.on_quit_requested