mirror of
https://github.com/bloxstraplabs/bloxstrap.git
synced 2025-04-18 16:41:36 -07:00
font mod: fix access is denied error when removing
This commit is contained in:
parent
6f1e023012
commit
889e5377f4
@ -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
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user