summaryrefslogtreecommitdiffhomepage
path: root/editor/imgui.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'editor/imgui.cpp')
-rw-r--r--editor/imgui.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/editor/imgui.cpp b/editor/imgui.cpp
index 2b768948..3465f27a 100644
--- a/editor/imgui.cpp
+++ b/editor/imgui.cpp
@@ -366,7 +366,7 @@ void app::do_popup_menu()
ImGui::MenuItem("Inspect", nullptr, exists))
{
if (!exists)
- inspectors.push_back(std::exchange(_popup_target, {}));
+ add_inspector(std::exchange(_popup_target, {}));
else
{
char buf[32];
@@ -407,7 +407,7 @@ void app::kill_popups(bool hard)
ImGui::CloseCurrentPopup();
if (hard)
- inspectors.clear();
+ kill_inspectors();
if (_imgui)
ImGui::FocusWindow(nullptr);