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,10 +25,15 @@ namespace Bloxstrap.UI.ViewModels.Menu
|
||||
if (_usingCustomFont)
|
||||
{
|
||||
if (App.IsFirstRun)
|
||||
{
|
||||
App.CustomFontLocation = null;
|
||||
}
|
||||
else
|
||||
{
|
||||
Filesystem.AssertReadOnly(Paths.CustomFont);
|
||||
File.Delete(Paths.CustomFont);
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
var dialog = new OpenFileDialog
|
||||
|
Loading…
Reference in New Issue
Block a user