Hopefully fix issue with missing caches.

This commit is contained in:
Ottermandias 2023-04-29 15:49:33 +02:00
parent c2933ba95c
commit 3d5765796e
4 changed files with 10 additions and 5 deletions

View file

@ -47,6 +47,7 @@ public class ActiveCollections : ISavable, IDisposable
_communicator.CollectionChange.Subscribe(OnCollectionChange, -100);
LoadCollections();
UpdateCurrentCollectionInUse();
Individuals.Loaded += UpdateCurrentCollectionInUse;
}
public void Dispose()
@ -275,7 +276,7 @@ public class ActiveCollections : ISavable, IDisposable
jObj.WriteTo(j);
}
public void UpdateCurrentCollectionInUse()
private void UpdateCurrentCollectionInUse()
=> CurrentCollectionInUse = SpecialCollections
.OfType<ModCollection>()
.Prepend(Interface)