mirror of
https://github.com/ShareX/ShareX.git
synced 2024-06-30 20:20:34 +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);
|
||||
}
|
||||
|
||||
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
|
|||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue