mirror of
https://github.com/ShareX/ShareX.git
synced 2024-07-04 22:21:23 +12:00
Merge pull request #6363 from makuhlmann/patch-1
Ensure proper saving of settings on file shares
This commit is contained in:
commit
b5f4f3e256
|
@ -157,7 +157,7 @@ private bool SaveInternal(string filePath)
|
||||||
FileHelpers.CreateDirectory(BackupFolder);
|
FileHelpers.CreateDirectory(BackupFolder);
|
||||||
}
|
}
|
||||||
|
|
||||||
File.Replace(tempFilePath, filePath, backupFilePath);
|
File.Replace(tempFilePath, filePath, backupFilePath, true);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue