mirror of
https://github.com/MaaAssistantArknights/MaaAssistantArknights.git
synced 2026-07-19 18:47:55 +08:00
chore: warning
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user