From 2df0532ae727e196919e3695514363a27cd1ae3f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Amaro=20Mart=C3=ADnez?= Date: Thu, 31 Aug 2023 01:50:50 -0500 Subject: [PATCH] Fix settings indices going out-of-bounds when switching languages --- RetroBar/Utilities/Settings.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/RetroBar/Utilities/Settings.cs b/RetroBar/Utilities/Settings.cs index b3074358..ce9b1df9 100644 --- a/RetroBar/Utilities/Settings.cs +++ b/RetroBar/Utilities/Settings.cs @@ -283,7 +283,7 @@ public AppBarEdge Edge } set { - if (_edge != value) + if (_edge != value && (int)value >= 0) { _edge = value; OnPropertyChanged(); @@ -335,7 +335,7 @@ public MultiMonOption MultiMonMode } set { - if (_multiMonMode != value) + if (_multiMonMode != value && (int)value >= 0) { _multiMonMode = value; OnPropertyChanged(); @@ -420,7 +420,7 @@ public InvertIconsOption InvertIconsMode } set { - if (_invertIconsMode != value) + if (_invertIconsMode != value && (int)value >= 0) { _invertIconsMode = value; OnPropertyChanged();