Delete old data.json
This commit is contained in:
parent
e02b00e0ef
commit
9d0fc18051
@ -271,6 +271,7 @@ public class TaskManager
|
|||||||
|
|
||||||
string exportPath = Path.Join(exportFolderPath, "data.json");
|
string exportPath = Path.Join(exportFolderPath, "data.json");
|
||||||
string serializedData = JsonConvert.SerializeObject(data);
|
string serializedData = JsonConvert.SerializeObject(data);
|
||||||
|
File.Delete(exportPath);
|
||||||
File.WriteAllText(exportPath, serializedData);
|
File.WriteAllText(exportPath, serializedData);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user