fix: 刷理智取消勾选下拉框中隐藏非当日关卡后关卡选择框不显示内容

This commit is contained in:
status102
2026-02-03 15:51:19 +08:00
parent fcc40f97c8
commit 295daad11d

View File

@@ -561,6 +561,7 @@ public class FightSettingsUserControlModel : TaskSettingsViewModel
if (update)
{
RefreshStageList();
RefreshCurrentStagePlan(); // 这个刷新可以优化
}
}
}
@@ -789,7 +790,7 @@ public class FightSettingsUserControlModel : TaskSettingsViewModel
using var scope = _lock.EnterScope();
var stageList = Instances.StageManager.GetStageList();
RefreshStageList();
foreach (var task in ConfigFactory.CurrentConfig.TaskQueue.Where(i => i is FightTask fight && !fight.IsStageManually).OfType<FightTask>())
foreach (var task in ConfigFactory.CurrentConfig.TaskQueue.OfType<FightTask>().Where(i => !i.IsStageManually))
{
for (int i = 0; i < task.StagePlan.Count; i++)
{