From 52fcc68448fb6bd34395db5bb9d67d1d6a3a43c9 Mon Sep 17 00:00:00 2001 From: Kevin Zhang <45326534+taooceros@users.noreply.github.com> Date: Fri, 27 Jan 2023 00:01:47 -0600 Subject: [PATCH] Move over Copy Move might be better since Replace delete the original file --- Flow.Launcher.Infrastructure/Storage/JsonStorage.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Flow.Launcher.Infrastructure/Storage/JsonStorage.cs b/Flow.Launcher.Infrastructure/Storage/JsonStorage.cs index 3b873524a..892f5f227 100644 --- a/Flow.Launcher.Infrastructure/Storage/JsonStorage.cs +++ b/Flow.Launcher.Infrastructure/Storage/JsonStorage.cs @@ -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; }