Skip to content

Commit 37dce1c

Browse files
committed
[sim] Fix DS GUI System Joysticks window auto-hiding
1 parent b7eb9fb commit 37dce1c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

simulation/halsim_gui/src/main/native/cpp/DriverStationGui.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1043,11 +1043,11 @@ static void DriverStationExecute() {
10431043

10441044
bool disableDS = IsDSDisabled();
10451045
if (disableDS && !prevDisableDS) {
1046-
if (auto win = HALSimGui::manager->GetWindow("System Joysticks")) {
1046+
if (auto win = DriverStationGui::dsManager->GetWindow("System Joysticks")) {
10471047
win->SetVisibility(glass::Window::kDisabled);
10481048
}
10491049
} else if (!disableDS && prevDisableDS) {
1050-
if (auto win = HALSimGui::manager->GetWindow("System Joysticks")) {
1050+
if (auto win = DriverStationGui::dsManager->GetWindow("System Joysticks")) {
10511051
win->SetVisibility(glass::Window::kShow);
10521052
}
10531053
}

0 commit comments

Comments
 (0)