chore(WpfGui): 防止缓存的任务文件被意外覆盖

This commit is contained in:
status102
2025-05-24 15:46:54 +08:00
parent 3799d6cfd0
commit 295a6f8753

View File

@@ -300,7 +300,7 @@ namespace MaaWpfGui.Main
string tasksFolderPath = Path.Combine(oldPath, @"resource\tasks");
string newTasksJsonPath = Path.Combine(tasksFolderPath, "tasks.json");
if (!File.Exists(tasksJsonPath))
if (File.Exists(newTasksJsonPath) || !File.Exists(tasksJsonPath))
{
return;
}