mirror of
https://github.com/HarbourMasters/Shipwright.git
synced 2025-08-21 13:53:49 -07:00
Fixed ImGui developer menu (#298)
Fixes the Auto Windows Opening that could cancel the menu by itself
This commit is contained in:
parent
0adad641a6
commit
e2c801a2ac
4 changed files with 16 additions and 5 deletions
|
@ -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;
|
||||
}
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue