From 204b93a3ebc4be3fb16b62057f256c0ea8f50445 Mon Sep 17 00:00:00 2001 From: pizzaboxer Date: Mon, 8 Jul 2024 13:01:26 +0400 Subject: [PATCH] Validate locale selection --- Bloxstrap/App.xaml.cs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Bloxstrap/App.xaml.cs b/Bloxstrap/App.xaml.cs index 30c6cb6..4d5ac5b 100644 --- a/Bloxstrap/App.xaml.cs +++ b/Bloxstrap/App.xaml.cs @@ -145,6 +145,12 @@ namespace Bloxstrap State.Load(); FastFlags.Load(); + if (!Locale.SupportedLocales.ContainsKey(Settings.Prop.Locale)) + { + Settings.Prop.Locale = "nil"; + Settings.Save(); + } + Locale.Set(Settings.Prop.Locale); }