Move over Copy

Move might be better since Replace delete the original file
This commit is contained in:
Kevin Zhang 2023-01-27 00:01:47 -06:00 committed by GitHub
parent 7e350b64ba
commit 52fcc68448
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -81,7 +81,7 @@ namespace Flow.Launcher.Infrastructure.Storage
if(File.Exists(FilePath)
File.Replace(BackupFilePath, FilePath, null);
else
File.Copy(BackupFilePath, FilePath);
File.Move(BackupFilePath, FilePath);
return data;
}