rft: Wpf基建任务序列化调整 (#12053)

* rft: Wpf基建任务序列化

* rft: 迁移遗漏的CustomInfrastEnabled
This commit is contained in:
status102
2025-03-04 16:48:50 +08:00
committed by GitHub
parent a80d7bbc03
commit 82b63a0c3e
6 changed files with 144 additions and 129 deletions

View File

@@ -201,8 +201,6 @@ public class InfrastSettingsUserControlModel : TaskViewModel
}
}
public static TaskQueueViewModel CustomInfrastPlanDataContext { get => Instances.TaskQueueViewModel; }
private string _usesOfDrones = ConfigurationHelper.GetValue(ConfigurationKeys.UsesOfDrones, "Money");
/// <summary>
@@ -329,7 +327,7 @@ public class InfrastSettingsUserControlModel : TaskViewModel
{
SetAndNotify(ref _customInfrastEnabled, value);
ConfigurationHelper.SetValue(ConfigurationKeys.CustomInfrastEnabled, value.ToString());
Instances.TaskQueueViewModel.CustomInfrastEnabled = value;
Instances.TaskQueueViewModel.RefreshCustomInfrastPlan();
}
}