Fix exception sometimes thrown on save (#665)

- Switch back from File.Rename to File.Move, as Rename is throwing exceptions on some users systems

Co-authored-by: DrakiaXYZ <565558+TheDgtl@users.noreply.github.com>
This commit is contained in:
Chomp
2025-10-27 08:41:37 +00:00
committed by GitHub
@@ -135,14 +135,7 @@ public class FileUtil
}
// Overwrite over the old file
if (File.Exists(filePath))
{
File.Replace(tempFilePath, filePath, null);
}
else
{
File.Move(tempFilePath, filePath);
}
File.Move(tempFilePath, filePath, overwrite: true);
}
catch
{