Unlock UI when clearing

This commit is contained in:
space-nuko
2023-05-11 00:36:02 -05:00
parent bc4128f07a
commit 17f89b47f1

View File

@@ -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() {