Skip to content

Commit

Permalink
[sim] Fix DS GUI System Joysticks window auto-hiding (wpilibsuite#7431)
Browse files Browse the repository at this point in the history
  • Loading branch information
PeterJohnson authored Nov 28, 2024
1 parent 49e3e4a commit 62338c7
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 62338c7

Please sign in to comment.