Fixed bug: dialogs not shown when main menu is hidden.

Ref issue #76.
This commit is contained in:
Muzychenko Andrey 2021-10-30 12:34:17 +03:00
parent e61bbd634c
commit fc1975a607
1 changed files with 1 additions and 2 deletions

View File

@ -339,7 +339,6 @@ void winmain::RenderUi()
} }
ImGui::End(); ImGui::End();
ImGui::PopStyleVar(); ImGui::PopStyleVar();
return;
} }
// No demo window in release to save space // No demo window in release to save space
@ -348,7 +347,7 @@ void winmain::RenderUi()
ImGui::ShowDemoWindow(&ShowImGuiDemo); ImGui::ShowDemoWindow(&ShowImGuiDemo);
#endif #endif
if (ImGui::BeginMainMenuBar()) if (Options.ShowMenu && ImGui::BeginMainMenuBar())
{ {
int currentMenuHeight = static_cast<int>(ImGui::GetWindowSize().y); int currentMenuHeight = static_cast<int>(ImGui::GetWindowSize().y);
if (MainMenuHeight != currentMenuHeight) if (MainMenuHeight != currentMenuHeight)