Skip to content

Commit

Permalink
Make sure the project directory is present on boot
Browse files Browse the repository at this point in the history
  • Loading branch information
KillzXGaming committed May 1, 2022
1 parent 9f85824 commit 659954f
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions Track Studio/src/MainWindow.cs
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,12 @@ public override void OnLoad()
GlobalSettings.ReloadLanguage();
GlobalSettings.ReloadTheme();

if (!Directory.Exists(GlobalSettings.Program.ProjectDirectory))
Directory.CreateDirectory(GlobalSettings.Program.ProjectDirectory);

SettingsWindow = new SettingsWindow(GlobalSettings);


AboutWindow = new AboutWindow();
Windows.Add(SettingsWindow);
Windows.Add(AboutWindow);
Expand Down

0 comments on commit 659954f

Please sign in to comment.