Fix JSON import not working in the flag editor

oooops
This commit is contained in:
pizzaboxer 2024-07-09 21:57:37 +04:00
parent 670dc707a9
commit a7d2a2c3d5
No known key found for this signature in database
GPG Key ID: 59D4A1DBAD0F2BA8

View File

@ -234,13 +234,12 @@ namespace Bloxstrap.UI.Elements.Menu.Pages
if (App.FastFlags.Prop.ContainsKey(pair.Key) && !overwriteConflicting)
continue;
// TODO - error message, i just had to hastily add this in
// as i'm currently testing 2.7.0 for release and all translations
// are already done
if (pair.Value is not string)
var val = pair.Value.ToString();
if (val is null)
continue;
if (!ValidateFlagEntry(pair.Key, (string)pair.Value))
if (!ValidateFlagEntry(pair.Key, val))
continue;
App.FastFlags.SetValue(pair.Key, pair.Value);