From fc1975a6073795696b5a75e1e85465651bea2db3 Mon Sep 17 00:00:00 2001 From: Muzychenko Andrey <33288308+k4zmu2a@users.noreply.github.com> Date: Sat, 30 Oct 2021 12:34:17 +0300 Subject: [PATCH] Fixed bug: dialogs not shown when main menu is hidden. Ref issue #76. --- SpaceCadetPinball/winmain.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/SpaceCadetPinball/winmain.cpp b/SpaceCadetPinball/winmain.cpp index 15c2c34..f6c38ff 100644 --- a/SpaceCadetPinball/winmain.cpp +++ b/SpaceCadetPinball/winmain.cpp @@ -339,7 +339,6 @@ void winmain::RenderUi() } ImGui::End(); ImGui::PopStyleVar(); - return; } // No demo window in release to save space @@ -348,7 +347,7 @@ void winmain::RenderUi() ImGui::ShowDemoWindow(&ShowImGuiDemo); #endif - if (ImGui::BeginMainMenuBar()) + if (Options.ShowMenu && ImGui::BeginMainMenuBar()) { int currentMenuHeight = static_cast(ImGui::GetWindowSize().y); if (MainMenuHeight != currentMenuHeight)