mirror of
https://github.com/MaaAssistantArknights/MaaAssistantArknights.git
synced 2026-07-20 10:57:45 +08:00
chore(WpfGui): 防止缓存的任务文件被意外覆盖
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user