From 320629931c9f85ad9833fa691425a14e403400ad Mon Sep 17 00:00:00 2001 From: WerWolv Date: Mon, 10 Apr 2023 14:10:35 +0200 Subject: [PATCH] fix: Yet another popup centering issue --- main/source/window/window.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/main/source/window/window.cpp b/main/source/window/window.cpp index 06d62bdd7..eb5370a86 100644 --- a/main/source/window/window.cpp +++ b/main/source/window/window.cpp @@ -547,8 +547,8 @@ namespace hex { auto emptyWindowSize = ImGui::GetStyle().FramePadding * 4; if (!sizeSet && popupSize.x > emptyWindowSize.x && popupSize.y > emptyWindowSize.y && popupSize.y < ImGui::GetMainViewport()->Size.y) { - ImGui::SetNextWindowSize(popupSize, ImGuiCond_FirstUseEver); - ImGui::SetNextWindowPos(ImGui::GetMainViewport()->GetCenter(), ImGuiCond_FirstUseEver, ImVec2(0.5F, 0.5F)); + ImGui::SetNextWindowSize(popupSize, ImGuiCond_Always); + ImGui::SetNextWindowPos(ImGui::GetMainViewport()->GetCenter(), ImGuiCond_Always, ImVec2(0.5F, 0.5F)); sizeSet = true; }