From 50601e4e6e7e4c05c902360ba1e3789f97622ed9 Mon Sep 17 00:00:00 2001 From: bluepilledgreat <97983689+bluepilledgreat@users.noreply.github.com> Date: Tue, 23 Apr 2024 21:45:36 +0100 Subject: [PATCH] fix custom font already existing on first run --- Bloxstrap/Bootstrapper.cs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Bloxstrap/Bootstrapper.cs b/Bloxstrap/Bootstrapper.cs index 6214e2e..39f4779 100644 --- a/Bloxstrap/Bootstrapper.cs +++ b/Bloxstrap/Bootstrapper.cs @@ -1198,6 +1198,10 @@ namespace Bloxstrap if (App.IsFirstRun && App.CustomFontLocation is not null) { Directory.CreateDirectory(Path.GetDirectoryName(Paths.CustomFont)!); + + if (File.Exists(Paths.CustomFont)) + File.Delete(Paths.CustomFont); + File.Copy(App.CustomFontLocation, Paths.CustomFont); }