mirror of
https://repo.dec05eba.com/gpu-screen-recorder-ui
synced 2026-04-26 03:16:45 +09:00
Add option to save temporary replay data on disk
This commit is contained in:
@@ -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();
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user