Fix exception sometimes thrown on save

- Switch back from File.Rename to File.Move, as Rename is throwing exceptions on some users systems
This commit is contained in:
DrakiaXYZ
2025-10-26 23:04:30 -07:00
parent 0e6986a4d5
commit 7039731e67
@@ -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
{