From 9a1963662c9be296a87d44dfee9c4cdb182cb799 Mon Sep 17 00:00:00 2001 From: Piotrekol Date: Tue, 11 Jun 2019 21:26:10 +0200 Subject: [PATCH] Fix: WebCollection list clearing itself when any new collection was created or loaded --- App/GuiActionsHandler.cs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/App/GuiActionsHandler.cs b/App/GuiActionsHandler.cs index 7b39b63..63cfbaa 100644 --- a/App/GuiActionsHandler.cs +++ b/App/GuiActionsHandler.cs @@ -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(); }