mirror of
https://github.com/calfmoon/node-factor.git
synced 2026-07-22 12:20:32 +00:00
fix(calc): stop calcLoop when plugin is unloaded
This commit is contained in:
parent
e4da1ffc39
commit
58c75de5c3
1 changed files with 4 additions and 0 deletions
|
|
@ -53,6 +53,10 @@ export default class NodeFactor extends Plugin {
|
|||
);
|
||||
}
|
||||
|
||||
async onunload() {
|
||||
this.updateLoop = false;
|
||||
}
|
||||
|
||||
private calcLoop(nodes: ObsidianNode[]) {
|
||||
setTimeout(() => {
|
||||
this.updateNodes(nodes);
|
||||
|
|
|
|||
Loading…
Reference in a new issue