diff options
author | dec05eba <dec05eba@protonmail.com> | 2024-12-31 21:43:10 +0100 |
---|---|---|
committer | dec05eba <dec05eba@protonmail.com> | 2024-12-31 21:43:10 +0100 |
commit | ae0fb952920d768dc35a746c6f4334116e3150da (patch) | |
tree | 982629a1fa0cf85fa5854a48491f3b9d574186a5 /include/gui | |
parent | fb348d651daeb6268b8cfcd9a929e233f9abb8d2 (diff) |
Better global settings design, dont change startup setting in ui if systemctl command fails
Diffstat (limited to 'include/gui')
-rw-r--r-- | include/gui/RadioButton.hpp | 3 |
1 files changed, 2 insertions, 1 deletions
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<void(const std::string &text, const std::string &id)> on_selection_changed; + // Return false to revert the change + std::function<bool(const std::string &text, const std::string &id)> on_selection_changed; private: void update_if_dirty(); private: |