minor bug fixes

This commit is contained in:
2025-12-03 02:11:25 -05:00
parent 24f98fe0a0
commit b4fddb7714
9 changed files with 26 additions and 7 deletions

View File

@@ -119,6 +119,7 @@ namespace anm2ed::imgui
closePopup.trigger();
bool isClosePopupOpenPrevious = closePopup.isOpen;
if (ImGui::BeginPopupModal(closePopup.label(), &closePopup.isOpen, ImGuiWindowFlags_NoResize))
{
if (closeDocumentIndex >= 0 && closeDocumentIndex < (int)manager.documents.size())
@@ -168,6 +169,8 @@ namespace anm2ed::imgui
ImGui::EndPopup();
}
if ((isClosePopupOpenPrevious != closePopup.isOpen) && isQuitting) isQuitting = false;
}
ImGui::End();