Merge pull request #1674 from bluepilledgreat/bugfix/first-run-font-install

Fix custom font already existing on first run
This commit is contained in:
pizzaboxer 2024-04-24 10:15:11 +01:00 committed by GitHub
commit c386695078
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1198,7 +1198,7 @@ namespace Bloxstrap
if (App.IsFirstRun && App.CustomFontLocation is not null)
{
Directory.CreateDirectory(Path.GetDirectoryName(Paths.CustomFont)!);
File.Copy(App.CustomFontLocation, Paths.CustomFont);
File.Copy(App.CustomFontLocation, Paths.CustomFont, true);
}
if (File.Exists(Paths.CustomFont))