Editor refactor: extract UI
This commit is contained in:
@@ -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[] {
|
||||
|
||||
Reference in New Issue
Block a user