Skip to content

Commit

Permalink
Fix: WebCollection list clearing itself when any new collection was c…
Browse files Browse the repository at this point in the history
…reated or loaded
  • Loading branch information
Piotrekol committed Jun 11, 2019
1 parent b369986 commit 9a19636
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions App/GuiActionsHandler.cs
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,7 @@ private void LoadedCollectionsOnCollectionChanged(object sender, NotifyCollectio

sidePanel.Collections = collections;

sidePanel.WebCollections.Clear();
sidePanel.WebCollections.AddRange(Initalizer.CollectionsManager.LoadedCollections.Except(collections).Select(c => (WebCollection)c));
sidePanel.WebCollections.AddRange(Initalizer.CollectionsManager.LoadedCollections.Except(collections).Except(sidePanel.WebCollections).Select(c => (WebCollection)c));
sidePanel.WebCollections.CallReset();

}
Expand Down

0 comments on commit 9a19636

Please sign in to comment.