From dc0744cecdfcf357e3a95403207c07e96d822c75 Mon Sep 17 00:00:00 2001 From: Christian Bager Bach Houmann Date: Mon, 21 Jun 2021 10:11:41 +0200 Subject: [PATCH] Change event listener to onLayoutReady --- src/main.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main.ts b/src/main.ts index a03de1c..464d90c 100644 --- a/src/main.ts +++ b/src/main.ts @@ -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();