From 9d0fc180514fc27b8176a52c552e03757d09d3d5 Mon Sep 17 00:00:00 2001 From: glax Date: Sun, 21 May 2023 01:58:07 +0200 Subject: [PATCH] Delete old data.json --- Tranga/TaskManager.cs | 1 + 1 file changed, 1 insertion(+) diff --git a/Tranga/TaskManager.cs b/Tranga/TaskManager.cs index e60ccb6..e7b6c2f 100644 --- a/Tranga/TaskManager.cs +++ b/Tranga/TaskManager.cs @@ -271,6 +271,7 @@ public class TaskManager string exportPath = Path.Join(exportFolderPath, "data.json"); string serializedData = JsonConvert.SerializeObject(data); + File.Delete(exportPath); File.WriteAllText(exportPath, serializedData); }