diff options
author | dec05eba <dec05eba@protonmail.com> | 2025-05-04 22:39:37 +0200 |
---|---|---|
committer | dec05eba <dec05eba@protonmail.com> | 2025-05-04 22:39:37 +0200 |
commit | 305c9df7acc140d1d4b723948b9f59e8282eea87 (patch) | |
tree | 3b57db37b0a8178b95f7db9694fc676d0f9c3287 /src/gui/RadioButton.cpp | |
parent | d08ea692771caa8e385412c2f992089672773e30 (diff) |
Add option to save temporary replay data on disk1.6.0
Diffstat (limited to 'src/gui/RadioButton.cpp')
-rw-r--r-- | src/gui/RadioButton.cpp | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/src/gui/RadioButton.cpp b/src/gui/RadioButton.cpp index a6ef96a..bbb958a 100644 --- a/src/gui/RadioButton.cpp +++ b/src/gui/RadioButton.cpp @@ -169,7 +169,7 @@ namespace gsr { } } - const std::string RadioButton::get_selected_id() const { + const std::string& RadioButton::get_selected_id() const { if(items.empty()) { static std::string dummy; return dummy; @@ -177,4 +177,13 @@ namespace gsr { return items[selected_item].id; } } + + const std::string& RadioButton::get_selected_text() const { + if(items.empty()) { + static std::string dummy; + return dummy; + } else { + return items[selected_item].text.get_string(); + } + } }
\ No newline at end of file |