fix(ui): ensure canvas tool modules are destroyed

This commit is contained in:
psychedelicious
2025-06-05 19:42:07 +10:00
parent f0fe070618
commit 1c0d2ab6fb

View File

@@ -641,6 +641,9 @@ export class CanvasToolModule extends CanvasModuleBase {
this.log.debug('Destroying module');
this.subscriptions.forEach((unsubscribe) => unsubscribe());
this.subscriptions.clear();
for (const tool of Object.values(this.tools)) {
tool.destroy();
}
this.konva.group.destroy();
};
}