From 610ed100116fb1af7f6fd7430389a4ada1abf585 Mon Sep 17 00:00:00 2001 From: Green Sky Date: Sun, 20 Aug 2023 12:50:58 +0200 Subject: [PATCH] scope plugin paths --- src/start_screen.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/start_screen.cpp b/src/start_screen.cpp index 5276e469..4969887d 100644 --- a/src/start_screen.cpp +++ b/src/start_screen.cpp @@ -49,14 +49,17 @@ Screen* StartScreen::poll(bool&) { if (ImGui::BeginTabItem("plugins")) { // list of selected plugins (in order) for (auto it = queued_plugin_paths.begin(); it != queued_plugin_paths.end();) { + ImGui::PushID(it->c_str()); if (ImGui::SmallButton("-")) { it = queued_plugin_paths.erase(it); + ImGui::PopID(); continue; } ImGui::SameLine(); ImGui::TextUnformatted(it->c_str()); + ImGui::PopID(); it++; }