mirror of
https://github.com/MaaAssistantArknights/MaaAssistantArknights.git
synced 2026-07-19 18:47:55 +08:00
refactor(wpf): 长草任务运行状态 (#13928)
* rft(wpf): 长草任务运行状态 移除战斗任务及基建任务独立运行状态, link to #12315 * perf: remove debug log * perf: remove debug log
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user