From 94b4bb3b5e43735304f5bdc12a31ea87cf1ca8ef Mon Sep 17 00:00:00 2001 From: Foglio Date: Tue, 2 Apr 2024 11:54:33 +0200 Subject: [PATCH] use ThreadSafeCollections for Items and Passivities in CooldownWindowViewModel --- TCC.Core/ViewModels/Widgets/CooldownWindowViewModel.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/TCC.Core/ViewModels/Widgets/CooldownWindowViewModel.cs b/TCC.Core/ViewModels/Widgets/CooldownWindowViewModel.cs index 392585af..f9a7e02c 100644 --- a/TCC.Core/ViewModels/Widgets/CooldownWindowViewModel.cs +++ b/TCC.Core/ViewModels/Widgets/CooldownWindowViewModel.cs @@ -52,8 +52,8 @@ public bool IsDragging public ICollectionViewLiveShaping? SkillsView { get; private set; } public ICollectionViewLiveShaping ItemsView { get; } public ICollectionViewLiveShaping AbnormalitiesView { get; } - public IEnumerable Items => Game.DB!.ItemsDatabase.ItemSkills; - public IEnumerable Passivities => Game.DB!.AbnormalityDatabase.Abnormalities.Values.ToList(); + public ThreadSafeCollection Items { get; } = [.. Game.DB!.ItemsDatabase.ItemSkills]; + public ThreadSafeCollection Passivities { get; } = [.. Game.DB!.AbnormalityDatabase.Abnormalities.Values.ToList()]; static bool FindAndUpdate(ThreadSafeObservableCollection list, Cooldown sk) {