From f8d9207aaa11e268c1035d4b02385c2ee4be10d7 Mon Sep 17 00:00:00 2001 From: Phillip Stephens Date: Sat, 7 May 2022 21:26:55 -0700 Subject: [PATCH] Fix crash if controller windows are collapsed --- Runtime/ImGuiControllerConfig.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Runtime/ImGuiControllerConfig.cpp b/Runtime/ImGuiControllerConfig.cpp index 94e047908..486bfacf8 100644 --- a/Runtime/ImGuiControllerConfig.cpp +++ b/Runtime/ImGuiControllerConfig.cpp @@ -84,8 +84,8 @@ void ImGuiControllerConfig::show(bool& visible) { PADRestoreDefaultMapping(i); } } - ImGui::End(); } + ImGui::End(); showEditor(m_editorVisible); } @@ -96,7 +96,7 @@ void ImGuiControllerConfig::showEditor(bool& visible) { } if (ImGui::Begin("Controller Atlas Editor", &visible)) { - ImGui::End(); } + ImGui::End(); } } // namespace metaforce