Skip to content

Commit

Permalink
Fix collections not being added on creation.
Browse files Browse the repository at this point in the history
  • Loading branch information
Ottermandias committed Jun 1, 2024
1 parent b79600e commit 24d4e9f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions Penumbra/Collections/Manager/CollectionStorage.cs
Original file line number Diff line number Diff line change
Expand Up @@ -154,6 +154,7 @@ public void Dispose()
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);
Expand Down

0 comments on commit 24d4e9f

Please sign in to comment.