refactor(wpf): 长草任务运行状态 (#13928)

* rft(wpf): 长草任务运行状态

移除战斗任务及基建任务独立运行状态, link to #12315

* perf: remove debug log

* perf: remove debug log
This commit is contained in:
Status102
2025-08-31 11:13:54 +08:00
committed by GitHub
parent 556d1bda73
commit 4a9e8f5d1e
7 changed files with 131 additions and 70 deletions

View File

@@ -22,6 +22,7 @@ using JetBrains.Annotations;
using MaaWpfGui.Constants;
using MaaWpfGui.Constants.Enums;
using MaaWpfGui.Helper;
using MaaWpfGui.Main;
using MaaWpfGui.Models;
using MaaWpfGui.Models.AsstTasks;
using MaaWpfGui.Services;
@@ -586,7 +587,7 @@ public class InfrastSettingsUserControlModel : TaskViewModel
public void RefreshCustomInfrastPlanIndexByPeriod()
{
if (InfrastMode != Mode.Custom || !_customInfrastPlanHasPeriod || Instances.TaskQueueViewModel.InfrastTaskRunning)
if (InfrastMode != Mode.Custom || !_customInfrastPlanHasPeriod || Instances.AsstProxy.TasksStatus.FirstOrDefault(i => i.Value.Type == AsstProxy.TaskType.Infrast).Value.Status == TaskStatus.InProgress)
{
return;
}