Skip to content

Commit

Permalink
[sim] Fix DS GUI System Joysticks window auto-hiding
Browse files Browse the repository at this point in the history
  • Loading branch information
PeterJohnson committed Nov 24, 2024
1 parent b7eb9fb commit 37dce1c
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
}
Expand Down

0 comments on commit 37dce1c

Please sign in to comment.