From 736f2f30956369754f6c8eeb49e7972720777cc9 Mon Sep 17 00:00:00 2001 From: dec05eba Date: Wed, 23 Apr 2025 00:59:17 +0200 Subject: Allow recording while using replay/streaming and option to save 1 min or 10 min --- src/gui/DropdownButton.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/gui/DropdownButton.cpp') 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; } -- cgit v1.2.3-70-g09d2