mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-19 00:41:43 +00:00
[sim] GUI: Don't show Window menu if it has no contents (#7432)
This commit is contained in:
@@ -148,7 +148,7 @@ __declspec(dllexport)
|
||||
gPlotProvider->DisplayMenu();
|
||||
ImGui::EndMenu();
|
||||
}
|
||||
if (ImGui::BeginMenu("Window")) {
|
||||
if (HALSimGui::manager->GetNumWindows() > 0 && ImGui::BeginMenu("Window")) {
|
||||
HALSimGui::manager->DisplayMenu();
|
||||
ImGui::EndMenu();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user