Skip to content

Commit

Permalink
Fix System.InvalidOperationException when unmarking screenshot as asset
Browse files Browse the repository at this point in the history
  • Loading branch information
Neakita committed Nov 9, 2023
1 parent 2fadda9 commit bbf21a4
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion SightKeeper.Domain.Model/Common/Asset.cs
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,8 @@ public void ClearItems()
{
foreach (var item in _items)
item.ItemClass.RemoveItem(item);
_items.Clear();
for (var i = _items.Count - 1; i >= 0; i--)
_items.RemoveAt(i);
}

private readonly ObservableCollection<DetectorItem> _items;
Expand Down

0 comments on commit bbf21a4

Please sign in to comment.