Skip to content

Commit

Permalink
Fix settings indices going out-of-bounds when switching languages
Browse files Browse the repository at this point in the history
  • Loading branch information
xoascf committed Aug 31, 2023
1 parent 2a213ee commit 2df0532
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 2df0532

Please sign in to comment.