Editor refactor: extract UI

This commit is contained in:
Zef Hemel
2023-07-14 14:22:26 +02:00
parent c5849f881b
commit e92ed2c5be
20 changed files with 315 additions and 274 deletions
+4 -1
View File
@@ -53,12 +53,15 @@ export class CommandHook extends EventEmitter<CommandHookEvents>
}
apply(system: System<CommandHookT>): void {
this.buildAllCommands(system);
system.on({
plugLoaded: () => {
this.buildAllCommands(system);
},
});
// On next tick
setTimeout(() => {
this.buildAllCommands(system);
});
}
validateManifest(manifest: Manifest<CommandHookT>): string[] {