font mod: amend potential language bug

This commit is contained in:
pizzaboxer 2024-05-20 15:40:17 +01:00
parent ef9b1f9aa7
commit 67c64b2715
No known key found for this signature in database
GPG Key ID: 59D4A1DBAD0F2BA8

View File

@ -44,7 +44,7 @@ namespace Bloxstrap.UI.ViewModels.Menu
if (dialog.ShowDialog() != true)
return;
string type = dialog.FileName.Substring(dialog.FileName.Length-3, 3).ToLower();
string type = dialog.FileName.Substring(dialog.FileName.Length-3, 3).ToLowerInvariant();
if (!File.ReadAllBytes(dialog.FileName).Take(4).SequenceEqual(FontHeaders[type]))
{