46 static bool show_prompt(
const std::string& message);
54 static inline std::vector<quit_confirmation*>
blockers_ {};
55 static inline bool open_ =
false;
Implements a quit confirmation dialog.
static bool default_prompt()
static bool show_prompt(const std::string &message)
quit_confirmation(const std::function< bool()> &prompt=&quit_confirmation::default_prompt)
static std::vector< quit_confirmation * > blockers_
static bool quit()
Shows the quit confirmation if needed.
quit_confirmation(const quit_confirmation &)=delete
static void quit_to_desktop()
const quit_confirmation & operator=(const quit_confirmation &)=delete
std::function< bool()> prompt_
static void quit_to_title()