mirror of
https://github.com/bloxstraplabs/bloxstrap.git
synced 2025-04-21 18:11:27 -07:00
fix custom font already existing on first run
This commit is contained in:
parent
1fcf956f12
commit
50601e4e6e
@ -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);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user