mirror of
https://github.com/xivdev/Penumbra.git
synced 2025-12-13 12:14:17 +01:00
Fix collections not being added on creation.
This commit is contained in:
parent
b79600ea14
commit
24d4e9fac6
1 changed files with 1 additions and 0 deletions
|
|
@ -154,6 +154,7 @@ public class CollectionStorage : IReadOnlyList<ModCollection>, IDisposable
|
|||
public bool AddCollection(string name, ModCollection? duplicate)
|
||||
{
|
||||
var newCollection = Create(name, _collections.Count, duplicate);
|
||||
_collections.Add(newCollection);
|
||||
_saveService.ImmediateSave(new ModCollectionSave(_modStorage, newCollection));
|
||||
Penumbra.Messager.NotificationMessage($"Created new collection {newCollection.AnonymizedName}.", NotificationType.Success, false);
|
||||
_communicator.CollectionChange.Invoke(CollectionType.Inactive, null, newCollection, string.Empty);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue