mirror of
https://github.com/invoke-ai/InvokeAI
synced 2024-08-30 20:32:17 +00:00
fix(ui): layer visibility toggle
This commit is contained in:
parent
078908fbea
commit
cce6bf9428
@ -268,7 +268,7 @@ export class CanvasLayer extends CanvasEntity {
|
||||
this._log.trace('Updating visibility');
|
||||
const isEnabled = get(arg, 'isEnabled', this._state.isEnabled);
|
||||
const hasObjects = this.objects.size > 0 || this._drawingBuffer !== null;
|
||||
this.konva.layer.visible(isEnabled || hasObjects);
|
||||
this.konva.layer.visible(isEnabled && hasObjects);
|
||||
}
|
||||
|
||||
updatePosition(arg?: { position: Coordinate }) {
|
||||
|
Loading…
Reference in New Issue
Block a user