22using OtterGui ;
33using OtterGui . Classes ;
44using OtterGui . Filesystem ;
5+ using OtterGui . Services ;
56using Penumbra . Communication ;
67using Penumbra . Mods . Manager ;
78using Penumbra . Services ;
8- using Penumbra . UI . CollectionTab ;
9- using Penumbra . Util ;
109
1110namespace Penumbra . Collections . Manager ;
1211
@@ -15,7 +14,7 @@ namespace Penumbra.Collections.Manager;
1514/// This is transitive, so a collection A inheriting from B also inherits from everything B inherits.
1615/// Circular dependencies are resolved by distinctness.
1716/// </summary>
18- public class InheritanceManager : IDisposable
17+ public class InheritanceManager : IDisposable , IService
1918{
2019 public enum ValidInheritance
2120 {
@@ -144,7 +143,8 @@ private void ApplyInheritances()
144143 continue ;
145144
146145 changes = true ;
147- Penumbra . Messager . NotificationMessage ( $ "{ collection . Name } can not inherit from { subCollection . Name } , removed.", NotificationType . Warning ) ;
146+ Penumbra . Messager . NotificationMessage ( $ "{ collection . Name } can not inherit from { subCollection . Name } , removed.",
147+ NotificationType . Warning ) ;
148148 }
149149 else if ( _storage . ByName ( subCollectionName , out subCollection ) )
150150 {
@@ -153,12 +153,14 @@ private void ApplyInheritances()
153153 if ( AddInheritance ( collection , subCollection , false ) )
154154 continue ;
155155
156- Penumbra . Messager . NotificationMessage ( $ "{ collection . Name } can not inherit from { subCollection . Name } , removed.", NotificationType . Warning ) ;
156+ Penumbra . Messager . NotificationMessage ( $ "{ collection . Name } can not inherit from { subCollection . Name } , removed.",
157+ NotificationType . Warning ) ;
157158 }
158159 else
159160 {
160161 Penumbra . Messager . NotificationMessage (
161- $ "Inherited collection { subCollectionName } for { collection . AnonymizedName } does not exist, it was removed.", NotificationType . Warning ) ;
162+ $ "Inherited collection { subCollectionName } for { collection . AnonymizedName } does not exist, it was removed.",
163+ NotificationType . Warning ) ;
162164 changes = true ;
163165 }
164166 }
0 commit comments