fix: 基建使用队列轮换时如果未勾选对应设施则不进入

fix #14019
This commit is contained in:
uye
2025-09-07 16:53:55 +08:00
parent 1d62c972b7
commit 0e865982c6
6 changed files with 6 additions and 6 deletions

View File

@@ -136,7 +136,7 @@ public class InfrastSettingsUserControlModel : TaskViewModel
/// <returns>The infrast order list.</returns>
public List<string> GetInfrastOrderList()
{
return InfrastItemViewModels.Where(i => InfrastMode == Mode.Rotation || i.IsChecked).Select(i => i.OriginalName).ToList();
return [.. InfrastItemViewModels.Where(i => i.IsChecked).Select(i => i.OriginalName)];
}
// UI 绑定的方法