improve menus

This commit is contained in:
2024-09-22 12:35:19 +02:00
parent 557a642ad3
commit 86ce199ac8
6 changed files with 25 additions and 20 deletions

View File

@ -118,8 +118,8 @@ void ObjectStoreUI::render(void) {
if (ImGui::BeginMenuBar()) {
ImGui::Separator();
if (ImGui::BeginMenu("ObjectStore")) {
if (ImGui::MenuItem("Inspector")) {
_ee.show_window = true;
if (ImGui::MenuItem("Inspector", nullptr, _ee.show_window)) {
_ee.show_window = !_ee.show_window;
}
ImGui::EndMenu();
}