We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 83bc67b commit 0149805Copy full SHA for 0149805
tsd/apps/interactive/viewer/windows/DatabaseEditor.cpp
@@ -23,7 +23,17 @@ void DatabaseEditor::buildUI()
23
ImGui::SetNextItemOpen(false, ImGuiCond_FirstUseEver);
24
if (ImGui::CollapsingHeader(headerText, ImGuiTreeNodeFlags_None)) {
25
tsd::foreach_item_const(ctxList, [&](auto *o) {
26
- tsd::ui::buildUI_object(*o, m_core->tsd.ctx, true);
+ if (!o)
27
+ return;
28
+
29
+ ImGui::Separator();
30
31
+ ImGui::PushID(o);
32
+ if (ImGui::Button("delete"))
33
+ m_core->tsd.ctx.removeObject(*o);
34
+ else
35
+ tsd::ui::buildUI_object(*o, m_core->tsd.ctx, true);
36
+ ImGui::PopID();
37
});
38
}
39
};
0 commit comments