mirror of
https://github.com/bloxstraplabs/bloxstrap.git
synced 2025-04-21 10:01:27 -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 (_usingCustomFont)
|
||||||
{
|
{
|
||||||
if (App.IsFirstRun)
|
if (App.IsFirstRun)
|
||||||
|
{
|
||||||
App.CustomFontLocation = null;
|
App.CustomFontLocation = null;
|
||||||
|
}
|
||||||
else
|
else
|
||||||
|
{
|
||||||
|
Filesystem.AssertReadOnly(Paths.CustomFont);
|
||||||
File.Delete(Paths.CustomFont);
|
File.Delete(Paths.CustomFont);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user