Skip to content

Commit

Permalink
Fix directory bug
Browse files Browse the repository at this point in the history
  • Loading branch information
NathanKell committed May 29, 2023
1 parent 9a1cdcf commit 2831197
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Source/StartupPopup.cs
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,10 @@ public void Start()

private static void RememberPreference()
{
FileInfo fi = new FileInfo(PreferenceFilePath);
if (!Directory.Exists(fi.Directory.FullName))
Directory.CreateDirectory(fi.Directory.FullName);

// create empty file
File.Create(PreferenceFilePath).Close();
}
Expand Down

0 comments on commit 2831197

Please sign in to comment.