Skip to content

Commit

Permalink
fix: Switching to preview mode doesn't update trail
Browse files Browse the repository at this point in the history
  • Loading branch information
HEmile committed Jan 16, 2022
1 parent fe9505a commit 3245a55
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ export default class BCPlugin extends Plugin {
} else {
const activeView = this.getActiveTYPEView(MATRIX_VIEW);
if (activeView) await activeView.draw();
if (this.settings.showBCs) await drawTrail(this);
// if (this.settings.showBCs) await drawTrail(this);
}
}
);
Expand All @@ -67,7 +67,7 @@ export default class BCPlugin extends Plugin {

registerLayoutChangeEvent() {
this.layoutChange = this.app.workspace.on("layout-change", async () => {
// if (this.settings.showBCs) await drawTrail(this);
if (this.settings.showBCs) await drawTrail(this);
});
this.registerEvent(this.layoutChange);
}
Expand Down

0 comments on commit 3245a55

Please sign in to comment.