Skip to content

Commit

Permalink
Corrects loading of plugin settings
Browse files Browse the repository at this point in the history
  • Loading branch information
lynchjames committed Dec 23, 2020
1 parent 9fdfacd commit 48c7346
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,14 @@ import { MindMapSettingsTab } from './settings-tab';
console.log("Loading Mind Map plugin");
this.vault = this.app.vault;
this.workspace = this.app.workspace;
this.settings = (await this.loadData()) || new MindMapSettings();
this.settings = Object.assign({
splitDirection: 'Horizontal',
nodeMinHeight: 16,
lineHeight: '1em',
spacingVertical: 5,
spacingHorizontal: 80,
paddingX: 8
}, await this.loadData());

this.registerView(
MM_VIEW_TYPE,
Expand Down

0 comments on commit 48c7346

Please sign in to comment.