font mod: fix access is denied error when removing

This commit is contained in:
pizzaboxer 2024-05-18 23:26:41 +01:00
parent 6f1e023012
commit 889e5377f4
No known key found for this signature in database
GPG Key ID: 59D4A1DBAD0F2BA8

View File

@ -25,9 +25,14 @@ namespace Bloxstrap.UI.ViewModels.Menu
if (_usingCustomFont)
{
if (App.IsFirstRun)
{
App.CustomFontLocation = null;
}
else
{
Filesystem.AssertReadOnly(Paths.CustomFont);
File.Delete(Paths.CustomFont);
}
}
else
{