From 3245a551272fff353de0f64e8583dd29b3dd3bec Mon Sep 17 00:00:00 2001 From: Emile Date: Sun, 16 Jan 2022 15:36:30 +0100 Subject: [PATCH] fix: Switching to preview mode doesn't update trail --- src/main.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main.ts b/src/main.ts index c6feca6d..d057b843 100644 --- a/src/main.ts +++ b/src/main.ts @@ -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); } } ); @@ -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); }