From 30dbc376930a89b6a2961b51ff100da713483b39 Mon Sep 17 00:00:00 2001 From: Al0cam Date: Fri, 15 May 2026 10:51:18 +0200 Subject: [PATCH] fix: timer killed by restart --- main.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/main.ts b/main.ts index 82fb6fe..03d3409 100644 --- a/main.ts +++ b/main.ts @@ -21,6 +21,8 @@ export default class AutoMoverPlugin extends obsidian.Plugin { this.settings = Object.assign({}, Settings.DEFAULT_SETTINGS, await this.loadData()); this.addSettingTab(new SettingsTab(this.app, this)); + this.automaticMoving(); + // negative ifs for easier reading and debugging if (!this.areMovingTriggersEnabled()) return; if (!this.areThereRulesToApply()) return; @@ -37,7 +39,7 @@ export default class AutoMoverPlugin extends obsidian.Plugin { this.registerEvent( // since i am defining my own event, ts-lint is crying about it but it works in the end this.app.workspace.on("AutoMover:automatic-moving-update", () => { - // console.log("Automatic moving update"); + console.log("Automatic moving update"); this.automaticMoving(); }), );