fix(calc): stop calcLoop when plugin is unloaded

This commit is contained in:
Kritagya Bhattarai (CalfMoon) 2025-03-11 17:52:30 +05:45
parent e4da1ffc39
commit 58c75de5c3

View file

@ -53,6 +53,10 @@ export default class NodeFactor extends Plugin {
);
}
async onunload() {
this.updateLoop = false;
}
private calcLoop(nodes: ObsidianNode[]) {
setTimeout(() => {
this.updateNodes(nodes);