From 889e5377f4fdff2b600d548e91c9aa4c1ae12c2c Mon Sep 17 00:00:00 2001 From: pizzaboxer Date: Sat, 18 May 2024 23:26:41 +0100 Subject: [PATCH] font mod: fix access is denied error when removing --- Bloxstrap/UI/ViewModels/Menu/ModsViewModel.cs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Bloxstrap/UI/ViewModels/Menu/ModsViewModel.cs b/Bloxstrap/UI/ViewModels/Menu/ModsViewModel.cs index f5cbb98..a285d50 100644 --- a/Bloxstrap/UI/ViewModels/Menu/ModsViewModel.cs +++ b/Bloxstrap/UI/ViewModels/Menu/ModsViewModel.cs @@ -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 {