mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-19 00:41:43 +00:00
[sim] Fix DS GUI System Joysticks window auto-hiding (#7431)
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user