Validate locale selection

This commit is contained in:
pizzaboxer 2024-07-08 13:01:26 +04:00
parent 4ec8f6b6cd
commit 204b93a3eb
No known key found for this signature in database
GPG Key ID: 59D4A1DBAD0F2BA8

View File

@ -145,6 +145,12 @@ namespace Bloxstrap
State.Load(); State.Load();
FastFlags.Load(); FastFlags.Load();
if (!Locale.SupportedLocales.ContainsKey(Settings.Prop.Locale))
{
Settings.Prop.Locale = "nil";
Settings.Save();
}
Locale.Set(Settings.Prop.Locale); Locale.Set(Settings.Prop.Locale);
} }