Working settings sync
This commit is contained in:
parent
9824d2ba31
commit
b87676d7b0
4 changed files with 12 additions and 5 deletions
2
main.ts
2
main.ts
|
|
@ -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();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue