Fixed ImGui developer menu (#298)

Fixes the Auto Windows Opening that could cancel the menu by itself
This commit is contained in:
PurpleHato
2022-05-12 15:05:54 +02:00
committed by GitHub
parent 0adad641a6
commit e2c801a2ac
4 changed files with 16 additions and 5 deletions

View File

@@ -97,7 +97,7 @@ void DrawColViewerWindow(bool& open) {
}
ImGui::SetNextWindowSize(ImVec2(520, 600), ImGuiCond_FirstUseEver);
if (!ImGui::Begin("Collision Viewer", &open)) {
if (!ImGui::Begin("Collision Viewer", &open, ImGuiWindowFlags_NoFocusOnAppearing)) {
ImGui::End();
return;
}

View File

@@ -1540,7 +1540,7 @@ void DrawSaveEditor(bool& open) {
}
ImGui::SetNextWindowSize(ImVec2(520, 600), ImGuiCond_FirstUseEver);
if (!ImGui::Begin("Save Editor", &open)) {
if (!ImGui::Begin("Save Editor", &open, ImGuiWindowFlags_NoFocusOnAppearing)) {
ImGui::End();
return;
}