Skip to content

Commit

Permalink
late PR feedback fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
Ebonsignori committed Nov 1, 2023
1 parent 8a56b14 commit 3c81619
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ export default class AutoJournal extends Plugin {

this.addCommand({
id: "manually-trigger",
name: "Manually Trigger",
name: "Manually trigger",
callback: () => {
this.run();
},
Expand Down Expand Up @@ -109,11 +109,11 @@ export default class AutoJournal extends Plugin {
},
});

this.app.workspace.onLayoutReady(() => {
if (this.settings.automaticallyRun) {
if (this.settings.automaticallyRun) {
this.app.workspace.onLayoutReady(() => {
this.run();
}
});
});
}
}

async run() {
Expand Down

0 comments on commit 3c81619

Please sign in to comment.