Working settings sync

This commit is contained in:
Leoh 2021-10-11 12:40:42 +05:30
parent 9824d2ba31
commit b87676d7b0
4 changed files with 12 additions and 5 deletions

View file

@ -21,7 +21,7 @@ export default class ExamplePlugin extends Plugin {
this.addSettingTab(new ExampleSettingsTab(this.app, this));
this.registerView(
VIEW_TYPE_EXAMPLE,
(leaf) => (this.view = new ExampleView(leaf))
(leaf) => (this.view = new ExampleView(leaf, this))
);
this.addRibbonIcon("dice", "Activate view", () => { //activate view
this.activateView();