perf: 主线导航目标关卡默认在屏幕内时不再划到最右边后往前寻找

This commit is contained in:
uye
2025-10-27 23:53:45 +08:00
parent 7caca829a1
commit 69ea005af3

View File

@@ -114,5 +114,8 @@ bool asst::StageNavigationTask::swipe_and_find_stage()
std::string replace_m_stage_code = m_stage_code;
utils::string_replace_all_in_place(replace_m_stage_code, { { "-", "" } });
Task.get<OcrTaskInfo>(m_stage_code + "@ClickedCorrectStage")->text = { m_stage_code, replace_m_stage_code };
return ProcessTask(*this, { m_stage_code + "@StageNavigationBegin" }).set_retry_times(RetryTimesDefault).run();
return ProcessTask(*this, { m_stage_code + "@ClickStageName", m_stage_code + "@StageNavigationBegin" })
.set_retry_times(RetryTimesDefault)
.run();
}