Skip to content

Commit

Permalink
fix(Path View): 🐛 Toggle Trail in Live Preview Mode command wasn't us…
Browse files Browse the repository at this point in the history
…ing the latest value to toggle the setting (#364)
  • Loading branch information
SkepticMystic committed Apr 17, 2022
1 parent 8191522 commit 42b2b67
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -233,7 +233,7 @@ export default class BCPlugin extends Plugin {
id: "Toggle-trail-in-Edit&LP",
name: "Toggle: Show Trail/Grid in Edit & LP mode",
callback: async () => {
settings.showBCsInEditLPMode = !showBCsInEditLPMode;
settings.showBCsInEditLPMode = !settings.showBCsInEditLPMode;
await this.saveSettings();
await drawTrail(this);
},
Expand Down Expand Up @@ -318,11 +318,11 @@ export default class BCPlugin extends Plugin {
}

loadSettings = async () =>
(this.settings = Object.assign(
{},
DEFAULT_SETTINGS,
await this.loadData()
));
(this.settings = Object.assign(
{},
DEFAULT_SETTINGS,
await this.loadData()
));

saveSettings = async () => await this.saveData(this.settings);

Expand Down

0 comments on commit 42b2b67

Please sign in to comment.