From 17f89b47f16f84d571d788164e3a54a44002f15e Mon Sep 17 00:00:00 2001 From: space-nuko <24979496+space-nuko@users.noreply.github.com> Date: Thu, 11 May 2023 00:36:02 -0500 Subject: [PATCH] Unlock UI when clearing --- src/lib/components/ComfyApp.ts | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/lib/components/ComfyApp.ts b/src/lib/components/ComfyApp.ts index 7d309d5..7b35e37 100644 --- a/src/lib/components/ComfyApp.ts +++ b/src/lib/components/ComfyApp.ts @@ -456,11 +456,6 @@ export default class ComfyApp { state = structuredClone(blankGraph) } await this.deserialize(state) - uiState.update(s => { - s.uiUnlocked = true; - s.uiEditMode = "widgets"; - return s; - }) } /** @@ -503,6 +498,11 @@ export default class ComfyApp { layoutState.onStartConfigure(); this.lGraph.configure(blankGraph) layoutState.initDefaultLayout(); + uiState.update(s => { + s.uiUnlocked = true; + s.uiEditMode = "widgets"; + return s; + }) } runDefaultQueueAction() {