mirror of
https://github.com/invoke-ai/InvokeAI.git
synced 2026-04-23 03:00:31 -04:00
fix(ui): ensure canvas tool modules are destroyed
This commit is contained in:
@@ -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();
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user