feat: 开始任务后强制锁定当前基建配置,强制定时启动时强制刷新基建配置

This commit is contained in:
uye
2023-10-20 17:32:31 +08:00
parent 18817c18b7
commit 8950d2ceaf
2 changed files with 4 additions and 5 deletions

View File

@@ -566,9 +566,7 @@ namespace MaaWpfGui.Main
case "Fight":
Instances.TaskQueueViewModel.FightTaskRunning = true;
break;
case "Infrast":
Instances.TaskQueueViewModel.InfrastTaskRunning = true;
default:
break;
}

View File

@@ -329,6 +329,7 @@ namespace MaaWpfGui.ViewModels.UI
}
ResetFightVariables();
RefreshCustomInfrastPlanIndexByPeriod();
}
LinkStart();
@@ -797,7 +798,6 @@ namespace MaaWpfGui.ViewModels.UI
_runningState.SetIdle(true);
SetStopped();
return false;
}
/// <summary>
@@ -815,7 +815,8 @@ namespace MaaWpfGui.ViewModels.UI
// 虽然更改时已经保存过了,不过保险起见还是在点击开始之后再保存一次任务及基建列表
TaskItemSelectionChanged();
Instances.SettingsViewModel.InfrastOrderSelectionChanged();
RefreshCustomInfrastPlanIndexByPeriod();
InfrastTaskRunning = true;
ClearLog();