From a119220961d3df6d8f5f96d3a646adedb5d99554 Mon Sep 17 00:00:00 2001 From: dec05eba Date: Sun, 29 Dec 2024 20:37:11 +0100 Subject: Add buttons to exit program and to go back to old ui for flatpak --- include/gui/GlobalSettingsPage.hpp | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'include/gui') diff --git a/include/gui/GlobalSettingsPage.hpp b/include/gui/GlobalSettingsPage.hpp index 35b6003..c55648b 100644 --- a/include/gui/GlobalSettingsPage.hpp +++ b/include/gui/GlobalSettingsPage.hpp @@ -12,6 +12,7 @@ namespace gsr { class ScrollablePage; class Subsection; class RadioButton; + class Button; class GlobalSettingsPage : public StaticPage { public: @@ -25,9 +26,14 @@ namespace gsr { // Called with (enable, exit_status) std::function on_startup_changed; + // Called with (reason) + std::function on_click_exit_program_button; private: std::unique_ptr create_appearance_subsection(ScrollablePage *parent_page); std::unique_ptr create_startup_subsection(ScrollablePage *parent_page); + std::unique_ptr