fix custom font already existing on first run

This commit is contained in:
bluepilledgreat 2024-04-23 21:45:36 +01:00
parent 1fcf956f12
commit 50601e4e6e

View File

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