Skip to content

Commit

Permalink
Change event listener to onLayoutReady
Browse files Browse the repository at this point in the history
  • Loading branch information
chhoumann committed Jun 21, 2021
1 parent 3cf2a7e commit dc0744c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ export default class QuickAdd extends Plugin {

this.addSettingTab(new QuickAddSettingsTab(this.app, this));

this.app.workspace.on('layout-ready', () => new StartupMacroEngine(this.app, this.settings.macros).run());
this.app.workspace.onLayoutReady( () => new StartupMacroEngine(this.app, this.settings.macros).run());
this.addCommandsForChoices(this.settings.choices);

await this.convertMacroChoicesMacroToId();
Expand Down

0 comments on commit dc0744c

Please sign in to comment.