diff options
author | dec05eba <dec05eba@protonmail.com> | 2025-04-23 00:59:17 +0200 |
---|---|---|
committer | dec05eba <dec05eba@protonmail.com> | 2025-04-23 00:59:17 +0200 |
commit | 736f2f30956369754f6c8eeb49e7972720777cc9 (patch) | |
tree | 1e0201740a6652cd02f0821ad599563e15448718 /src/gui/DropdownButton.cpp | |
parent | 719236d4f41735a96e5a0707c7d964335907ffee (diff) |
Allow recording while using replay/streaming and option to save 1 min or 10 min
Diffstat (limited to 'src/gui/DropdownButton.cpp')
-rw-r--r-- | src/gui/DropdownButton.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/gui/DropdownButton.cpp b/src/gui/DropdownButton.cpp index 6721840..788f56a 100644 --- a/src/gui/DropdownButton.cpp +++ b/src/gui/DropdownButton.cpp @@ -181,6 +181,10 @@ namespace gsr { } void DropdownButton::add_item(const std::string &text, const std::string &id, const std::string &description) { + for(auto &item : items) { + if(item.id == id) + return; + } items.push_back({mgl::Text(text, *title_font), mgl::Text(description, *description_font), nullptr, id}); dirty = true; } |