Browse Source

Create AppData/StabilityMatrix dir for global settings

pull/14/head
Ionite 1 year ago
parent
commit
7fa260419b
No known key found for this signature in database
  1. 1
      StabilityMatrix/Helper/SettingsManager.cs

1
StabilityMatrix/Helper/SettingsManager.cs

@ -315,6 +315,7 @@ public class SettingsManager : ISettingsManager
{ {
if (!File.Exists(GlobalSettingsPath)) if (!File.Exists(GlobalSettingsPath))
{ {
Directory.CreateDirectory(Path.GetDirectoryName(GlobalSettingsPath)!);
File.Create(GlobalSettingsPath).Close(); File.Create(GlobalSettingsPath).Close();
return false; return false;
} }

Loading…
Cancel
Save