mirror of
https://github.com/invoke-ai/InvokeAI.git
synced 2026-04-23 03:00:31 -04:00
fix(ui): flash of last staged image when accepting staging area
Need to destroy the progress image and staging image when we finish with them.
This commit is contained in:
committed by
Kent Keirsey
parent
993a4603a1
commit
94cb611c90
@@ -109,6 +109,8 @@ export class CanvasProgressImageModule extends CanvasModuleBase {
|
||||
|
||||
if (!event || !showProgressOnCanvas) {
|
||||
this.konva.group.visible(false);
|
||||
this.konva.image?.destroy();
|
||||
this.konva.image = null;
|
||||
this.imageElement = null;
|
||||
this.isLoading = false;
|
||||
this.isError = false;
|
||||
|
||||
@@ -100,7 +100,8 @@ export class CanvasStagingAreaModule extends CanvasModuleBase {
|
||||
}
|
||||
this.image.konva.group.visible(shouldShowStagedImage);
|
||||
} else {
|
||||
this.image?.konva.group.visible(false);
|
||||
this.image?.destroy();
|
||||
this.image = null;
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user