style: format and init

[skip changelog]
This commit is contained in:
status102
2024-11-09 14:48:10 +08:00
parent 23ad7c47b6
commit ed58eec873
2 changed files with 4 additions and 4 deletions

View File

@@ -44,17 +44,17 @@ namespace MaaWpfGui.ViewModels.UI
{
private readonly RunningState _runningState;
private static readonly ILogger _logger = Log.ForContext<CopilotViewModel>();
private readonly List<int> _copilotIdList = new(); // 用于保存作业列表中的作业的Id对于同一个作业只有都执行成功才点赞
private readonly List<int> _copilotIdList = []; // 用于保存作业列表中的作业的Id对于同一个作业只有都执行成功才点赞
/// <summary>
/// Gets the view models of log items.
/// </summary>
public ObservableCollection<LogItemViewModel> LogItemViewModels { get; } = new();
public ObservableCollection<LogItemViewModel> LogItemViewModels { get; } = [];
/// <summary>
/// Gets or private sets the view models of Copilot items.
/// </summary>
public ObservableCollection<CopilotItemViewModel> CopilotItemViewModels { get; } = new();
public ObservableCollection<CopilotItemViewModel> CopilotItemViewModels { get; } = [];
/// <summary>
/// Initializes a new instance of the <see cref="CopilotViewModel"/> class.

View File

@@ -3433,7 +3433,7 @@ namespace MaaWpfGui.ViewModels.UI
/// </summary>
public List<CombinedData> AutoRecruitSelectExtraTagsList { get; } =
[
new() { Display = LocalizationHelper.GetString("DefaultNoExtraTags"), Value = "0" } ,
new() { Display = LocalizationHelper.GetString("DefaultNoExtraTags"), Value = "0" },
new() { Display = LocalizationHelper.GetString("SelectExtraTags"), Value = "1" },
new() { Display = LocalizationHelper.GetString("SelectExtraOnlyRareTags"), Value = "2" },
];