Skip to content

Commit

Permalink
Bug fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
JamesCJ60 committed Jun 15, 2023
1 parent f1b17b6 commit df01d8a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -249,7 +249,7 @@ private void UpdateGUI(UserIndex controllerNo)
}
}

if (selected != lastSelected && cards[selected].Visibility != Visibility.Collapsed)
if (selected != lastSelected && cards[selected].Visibility != Visibility.Collapsed && cards[selected].BorderBrush != selectedBorderBrush)
{
if (selected < 0) selected = 0;
if (selected > cards.Length - 1) selected = cards.Length - 1;
Expand Down Expand Up @@ -295,6 +295,8 @@ private void UpdateGUI(UserIndex controllerNo)
card.BorderBrush = normalBorderBrush;
card.BorderThickness = normalThickness;
}

lastSelected = -1;
}
} catch { }
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -217,7 +217,7 @@ private void UpdateGUI(UserIndex controllerNo)
}
}

if (selected != lastSelected && cards[selected].Visibility != Visibility.Collapsed)
if (selected != lastSelected && cards[selected].Visibility != Visibility.Collapsed && cards[selected].BorderBrush != selectedBorderBrush)
{
if (selected < 0) selected = 0;
if (selected > cards.Length - 1) selected = cards.Length - 1;
Expand Down Expand Up @@ -263,6 +263,7 @@ private void UpdateGUI(UserIndex controllerNo)
card.BorderBrush = normalBorderBrush;
card.BorderThickness = normalThickness;
}
lastSelected = -1;
}
} catch { }
}
Expand Down

0 comments on commit df01d8a

Please sign in to comment.