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 327d09da..6f1e1d29 100644
--- a/editor/imgui.cpp
+++ b/editor/imgui.cpp
@@ -169,8 +169,8 @@ void app::do_popup_menu()
const auto i = sc->index();
if (ImGui::MenuItem("Activate", nullptr, false, sc->can_activate(i)))
sc->activate(i);
- if (bool b_ins = sc && !check_inspector_exists(_popup_target);
- ImGui::MenuItem("Inspect", nullptr, false, b_ins))
+ if (bool b_ins = !check_inspector_exists(_popup_target);
+ ImGui::MenuItem("Inspect", nullptr, !b_ins, b_ins))
inspectors.push_back(std::exchange(_popup_target, {}));
ImGui::SeparatorText("Modify");
if (auto next_rot = sc->atlas->next_rotation_from(sc->r);