From ae0fb952920d768dc35a746c6f4334116e3150da Mon Sep 17 00:00:00 2001 From: dec05eba Date: Tue, 31 Dec 2024 21:43:10 +0100 Subject: Better global settings design, dont change startup setting in ui if systemctl command fails --- include/gui/RadioButton.hpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'include/gui') diff --git a/include/gui/RadioButton.hpp b/include/gui/RadioButton.hpp index a009eab..16d638e 100644 --- a/include/gui/RadioButton.hpp +++ b/include/gui/RadioButton.hpp @@ -27,7 +27,8 @@ namespace gsr { mgl::vec2f get_size() override; - std::function on_selection_changed; + // Return false to revert the change + std::function on_selection_changed; private: void update_if_dirty(); private: -- cgit v1.2.3