quck fixes to issues i noticed while doing a general overview

This commit is contained in:
2025-11-14 16:22:22 -05:00
parent 5470368b6a
commit 4b6fa7153d
5 changed files with 13 additions and 8 deletions

View File

@@ -175,7 +175,6 @@ namespace anm2ed::imgui
{
if (!manager.anm2DragDropPopup.is_open()) manager.anm2DragDropPopup.open();
bool wasOpen = manager.anm2DragDropPopup.is_open();
manager.anm2DragDropPopup.trigger();
if (ImGui::BeginPopupContextWindow(manager.anm2DragDropPopup.label, ImGuiPopupFlags_None))
@@ -212,7 +211,7 @@ namespace anm2ed::imgui
manager.anm2DragDropPopup.end();
ImGui::EndPopup();
}
else if (wasOpen && !manager.anm2DragDropPopup.is_open())
else if (!ImGui::IsPopupOpen(manager.anm2DragDropPopup.label))
drag_drop_reset();
}
}