Merge pull request #6363 from makuhlmann/patch-1

Ensure proper saving of settings on file shares
This commit is contained in:
Jaex 2022-07-13 01:24:09 +03:00 committed by GitHub
commit b5f4f3e256
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -157,7 +157,7 @@ private bool SaveInternal(string filePath)
FileHelpers.CreateDirectory(BackupFolder);
}
File.Replace(tempFilePath, filePath, backupFilePath);
File.Replace(tempFilePath, filePath, backupFilePath, true);
}
else
{
@ -323,4 +323,4 @@ private static void Serializer_Error(object sender, Newtonsoft.Json.Serializatio
}
}
}
}
}