mirror of
https://github.com/xivdev/Penumbra.git
synced 2025-12-16 05:34:25 +01:00
Fix bug with collections with inheritance saving on every launch.
This commit is contained in:
parent
ca51c3b107
commit
37a56c56af
4 changed files with 9 additions and 4 deletions
|
|
@ -69,7 +69,7 @@ public partial class ModCollection
|
|||
// Add a new collection to the inheritance list.
|
||||
// We do not check if this collection would be visited before,
|
||||
// only that it is unique in the list itself.
|
||||
public bool AddInheritance( ModCollection collection )
|
||||
public bool AddInheritance( ModCollection collection, bool invokeEvent )
|
||||
{
|
||||
if( CheckValidInheritance( collection ) != ValidInheritance.Valid )
|
||||
{
|
||||
|
|
@ -80,7 +80,11 @@ public partial class ModCollection
|
|||
// Changes in inherited collections may need to trigger further changes here.
|
||||
collection.ModSettingChanged += OnInheritedModSettingChange;
|
||||
collection.InheritanceChanged += OnInheritedInheritanceChange;
|
||||
InheritanceChanged.Invoke( false );
|
||||
if( invokeEvent )
|
||||
{
|
||||
InheritanceChanged.Invoke( false );
|
||||
}
|
||||
|
||||
Penumbra.Log.Debug( $"Added {collection.AnonymizedName} to {AnonymizedName} inheritances." );
|
||||
return true;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue