chore: warning

This commit is contained in:
status102
2025-06-03 17:08:16 +08:00
parent d3122ace7c
commit 9a70da5d3f
12 changed files with 36 additions and 19 deletions

View File

@@ -540,7 +540,7 @@ public class FightSettingsUserControlModel : TaskViewModel
/// <summary>
/// Gets the list of all drops.
/// </summary>
private List<CombinedData> AllDrops { get; } = new();
private List<CombinedData> AllDrops { get; } = [];
/// <summary>
/// 关卡不可掉落的材料
@@ -583,7 +583,7 @@ public class FightSettingsUserControlModel : TaskViewModel
}
AllDrops.Sort((a, b) => string.Compare(a.Value, b.Value, StringComparison.Ordinal));
DropsList = new ObservableCollection<CombinedData>(AllDrops);
DropsList = [.. AllDrops];
}
/// <summary>