scope plugin paths

This commit is contained in:
Green Sky 2023-08-20 12:50:58 +02:00
parent 4edab11616
commit 610ed10011
No known key found for this signature in database

View File

@ -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++;
}