mirror of
https://github.com/MaaAssistantArknights/MaaAssistantArknights.git
synced 2026-07-15 17:30:27 +08:00
fix: 要求每次进入基建宿舍后都重新选择一遍筛选条件 (#10968)
* fix: 要求每次进入基建宿舍后都重新选择一遍筛选条件 * chore: Auto update by pre-commit hooks * fix: 修复死循环,替换为只执行一遍 Co-authored-by: status102 <102887808+status102@users.noreply.github.com> * refactor: 加个 log,未来用于检测 --------- Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> Co-authored-by: status102 <102887808+status102@users.noreply.github.com>
This commit is contained in:
@@ -50,10 +50,13 @@ bool asst::InfrastDormTask::_run()
|
|||||||
}
|
}
|
||||||
|
|
||||||
Log.trace("m_dorm_notstationed_enabled:", m_dorm_notstationed_enabled);
|
Log.trace("m_dorm_notstationed_enabled:", m_dorm_notstationed_enabled);
|
||||||
if (m_dorm_notstationed_enabled && !m_if_filter_notstationed_haspressed) {
|
if (m_dorm_notstationed_enabled) {
|
||||||
Log.trace("click_filter_menu_not_stationed_button");
|
Log.trace("click_filter_menu_not_stationed_button");
|
||||||
click_filter_menu_not_stationed_button();
|
// 在此处不进行 m_if_filter_notstationed_haspressed 的判断,即必须重新选择一次筛选条件
|
||||||
m_if_filter_notstationed_haspressed = true;
|
if (click_filter_menu_not_stationed_button()) {
|
||||||
|
Log.info("successfully set filter to [Not Assigned]");
|
||||||
|
m_if_filter_notstationed_haspressed = true;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!m_is_custom || current_room_config().autofill) {
|
if (!m_is_custom || current_room_config().autofill) {
|
||||||
|
|||||||
Reference in New Issue
Block a user