Skip to content

Commit

Permalink
use ThreadSafeCollections for Items and Passivities in CooldownWindow…
Browse files Browse the repository at this point in the history
…ViewModel
  • Loading branch information
foglio1024 committed Apr 2, 2024
1 parent 5308c88 commit 94b4bb3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions TCC.Core/ViewModels/Widgets/CooldownWindowViewModel.cs
Original file line number Diff line number Diff line change
Expand Up @@ -52,8 +52,8 @@ public bool IsDragging
public ICollectionViewLiveShaping? SkillsView { get; private set; }
public ICollectionViewLiveShaping ItemsView { get; }
public ICollectionViewLiveShaping AbnormalitiesView { get; }
public IEnumerable<Item> Items => Game.DB!.ItemsDatabase.ItemSkills;
public IEnumerable<Abnormality> Passivities => Game.DB!.AbnormalityDatabase.Abnormalities.Values.ToList();
public ThreadSafeCollection<Item> Items { get; } = [.. Game.DB!.ItemsDatabase.ItemSkills];
public ThreadSafeCollection<Abnormality> Passivities { get; } = [.. Game.DB!.AbnormalityDatabase.Abnormalities.Values.ToList()];

static bool FindAndUpdate(ThreadSafeObservableCollection<Cooldown> list, Cooldown sk)
{
Expand Down

0 comments on commit 94b4bb3

Please sign in to comment.