fix: LoadingText 结束后 UI 延迟变化导致误匹配 (#15198)

* fix: LoadingText 结束后 UI 延迟变化导致误匹配

* fix: task check
This commit is contained in:
Status102
2025-12-26 22:36:57 +08:00
committed by GitHub
parent b5a1998f22
commit a19cf301e3
2 changed files with 7 additions and 2 deletions

View File

@@ -1114,7 +1114,12 @@
"algorithm": "OcrDetect",
"text": ["正在提交", "反馈至神经"],
"roi": [700, 600, 300, 120],
"next": ["LoadingText", "#next", "#back"]
"next": ["LoadingText", "LoadingTextPostDelay"]
},
"LoadingTextPostDelay": {
"algorithm": "JustReturn",
"postDelay": 2000,
"next": ["#next", "#back"]
},
"NextAfterLoadingText": {
"baseTask": "LoadingText",

View File

@@ -166,7 +166,7 @@ bool asst::TaskData::lazy_parse(const json::value& json)
return true;
};
bool enable_justreturn_check = true;
if (name.ends_with("LoadingText") || name.ends_with("LoadingIcon")) {
if (name.ends_with("LoadingText") || name.ends_with("LoadingTextPostDelay") || name.ends_with("LoadingIcon")) {
// 放宽对 Loading 类任务的限制,不然 JustReturn 的任务如果本身有 JR 的 next就不能 @Loading 了
enable_justreturn_check = false;
}