From d62c0ce19d850ada55b118bafcbb84fcc1a9534a Mon Sep 17 00:00:00 2001 From: Ross Keenan Date: Thu, 6 Jan 2022 11:26:50 +0200 Subject: [PATCH] fix: :bug: Load settings much sooner --- src/main.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/main.ts b/src/main.ts index 86af4b26..9fdae5f7 100644 --- a/src/main.ts +++ b/src/main.ts @@ -158,6 +158,7 @@ export default class BCPlugin extends Plugin { await this.loadSettings(); const { settings } = this; + this.addSettingTab(new BCSettingTab(this.app, this)); if (typeof settings.debugMode === "boolean") { settings.debugMode = settings.debugMode ? "DEBUG" : "WARN"; @@ -573,8 +574,6 @@ export default class BCPlugin extends Plugin { "Breadcrumbs Visualisation", () => new VisModal(this.app, this).open() ); - - this.addSettingTab(new BCSettingTab(this.app, this)); } writeBCToFile = async (file: TFile) => {