We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7fc7045 commit 7e350b6Copy full SHA for 7e350b6
Flow.Launcher.Infrastructure/Storage/JsonStorage.cs
@@ -77,7 +77,11 @@ private T LoadDefault()
77
if (data != null)
78
{
79
Log.Info($"|JsonStorage.Load|Failed to load settings.json, {BackupFilePath} restored successfully");
80
- File.Replace(BackupFilePath, FilePath, null);
+
81
+ if(File.Exists(FilePath)
82
+ File.Replace(BackupFilePath, FilePath, null);
83
+ else
84
+ File.Copy(BackupFilePath, FilePath);
85
86
return data;
87
}
0 commit comments