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)