From 9d1e32dfc12eaf799d2800979308a738e7e7afa4 Mon Sep 17 00:00:00 2001 From: bluepilledgreat <97983689+bluepilledgreat@users.noreply.github.com> Date: Tue, 23 Apr 2024 23:29:54 +0100 Subject: [PATCH] use overwrite parameter instead --- Bloxstrap/Bootstrapper.cs | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/Bloxstrap/Bootstrapper.cs b/Bloxstrap/Bootstrapper.cs index 39f4779..909c978 100644 --- a/Bloxstrap/Bootstrapper.cs +++ b/Bloxstrap/Bootstrapper.cs @@ -1198,11 +1198,7 @@ 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); + File.Copy(App.CustomFontLocation, Paths.CustomFont, true); } if (File.Exists(Paths.CustomFont))