Skip to content

Commit

Permalink
Merge pull request #670 from xoascf/fix-settings-oob
Browse files Browse the repository at this point in the history
Fix settings indices going out-of-bounds when switching languages
  • Loading branch information
dremin authored Aug 31, 2023
2 parents 2a213ee + 2df0532 commit a54a66a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions RetroBar/Utilities/Settings.cs
Original file line number Diff line number Diff line change
Expand Up @@ -283,7 +283,7 @@ public AppBarEdge Edge
}
set
{
if (_edge != value)
if (_edge != value && (int)value >= 0)
{
_edge = value;
OnPropertyChanged();
Expand Down Expand Up @@ -335,7 +335,7 @@ public MultiMonOption MultiMonMode
}
set
{
if (_multiMonMode != value)
if (_multiMonMode != value && (int)value >= 0)
{
_multiMonMode = value;
OnPropertyChanged();
Expand Down Expand Up @@ -420,7 +420,7 @@ public InvertIconsOption InvertIconsMode
}
set
{
if (_invertIconsMode != value)
if (_invertIconsMode != value && (int)value >= 0)
{
_invertIconsMode = value;
OnPropertyChanged();
Expand Down

0 comments on commit a54a66a

Please sign in to comment.