From 62338c7287dfbff56513d72c68801d76e7193c57 Mon Sep 17 00:00:00 2001 From: Peter Johnson Date: Wed, 27 Nov 2024 23:03:55 -0800 Subject: [PATCH] [sim] Fix DS GUI System Joysticks window auto-hiding (#7431) --- .../halsim_gui/src/main/native/cpp/DriverStationGui.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/simulation/halsim_gui/src/main/native/cpp/DriverStationGui.cpp b/simulation/halsim_gui/src/main/native/cpp/DriverStationGui.cpp index cb238d87e6a..6f3b863bfac 100644 --- a/simulation/halsim_gui/src/main/native/cpp/DriverStationGui.cpp +++ b/simulation/halsim_gui/src/main/native/cpp/DriverStationGui.cpp @@ -1043,11 +1043,11 @@ static void DriverStationExecute() { bool disableDS = IsDSDisabled(); if (disableDS && !prevDisableDS) { - if (auto win = HALSimGui::manager->GetWindow("System Joysticks")) { + if (auto win = DriverStationGui::dsManager->GetWindow("System Joysticks")) { win->SetVisibility(glass::Window::kDisabled); } } else if (!disableDS && prevDisableDS) { - if (auto win = HALSimGui::manager->GetWindow("System Joysticks")) { + if (auto win = DriverStationGui::dsManager->GetWindow("System Joysticks")) { win->SetVisibility(glass::Window::kShow); } }