Skip to content

Commit

Permalink
fix: 🐛 Load settings much sooner
Browse files Browse the repository at this point in the history
  • Loading branch information
SkepticMystic committed Jan 6, 2022
1 parent 9cb148e commit d62c0ce
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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";
Expand Down Expand Up @@ -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) => {
Expand Down

0 comments on commit d62c0ce

Please sign in to comment.