use overwrite parameter instead

This commit is contained in:
bluepilledgreat 2024-04-23 23:29:54 +01:00
parent 50601e4e6e
commit 9d1e32dfc1

View File

@ -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))