forked from Green-Sky/tomato
scope plugin paths
This commit is contained in:
parent
4edab11616
commit
610ed10011
@ -49,14 +49,17 @@ Screen* StartScreen::poll(bool&) {
|
|||||||
if (ImGui::BeginTabItem("plugins")) {
|
if (ImGui::BeginTabItem("plugins")) {
|
||||||
// list of selected plugins (in order)
|
// list of selected plugins (in order)
|
||||||
for (auto it = queued_plugin_paths.begin(); it != queued_plugin_paths.end();) {
|
for (auto it = queued_plugin_paths.begin(); it != queued_plugin_paths.end();) {
|
||||||
|
ImGui::PushID(it->c_str());
|
||||||
if (ImGui::SmallButton("-")) {
|
if (ImGui::SmallButton("-")) {
|
||||||
it = queued_plugin_paths.erase(it);
|
it = queued_plugin_paths.erase(it);
|
||||||
|
ImGui::PopID();
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
ImGui::SameLine();
|
ImGui::SameLine();
|
||||||
|
|
||||||
ImGui::TextUnformatted(it->c_str());
|
ImGui::TextUnformatted(it->c_str());
|
||||||
|
|
||||||
|
ImGui::PopID();
|
||||||
it++;
|
it++;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user