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:
Weiyou Wang
2024-10-30 14:22:44 +11:00
committed by GitHub
parent 2dcd54a2d8
commit b28ffcc13e

View File

@@ -50,10 +50,13 @@ bool asst::InfrastDormTask::_run()
}
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");
click_filter_menu_not_stationed_button();
m_if_filter_notstationed_haspressed = true;
// 在此处不进行 m_if_filter_notstationed_haspressed 的判断,即必须重新选择一次筛选条件
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) {