Skip to content

Commit 38d3e15

Browse files
authored
Never restore view when setting is disabled (#3975)
1 parent 674d04c commit 38d3e15

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed
-23 KB
Loading

src/scripts/app.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1074,11 +1074,11 @@ export class ComfyApp {
10741074
try {
10751075
// @ts-expect-error Discrepancies between zod and litegraph - in progress
10761076
this.graph.configure(graphData)
1077-
if (restore_view) {
1078-
if (
1079-
useSettingStore().get('Comfy.EnableWorkflowViewRestore') &&
1080-
graphData.extra?.ds
1081-
) {
1077+
if (
1078+
restore_view &&
1079+
useSettingStore().get('Comfy.EnableWorkflowViewRestore')
1080+
) {
1081+
if (graphData.extra?.ds) {
10821082
this.canvas.ds.offset = graphData.extra.ds.offset
10831083
this.canvas.ds.scale = graphData.extra.ds.scale
10841084
} else {

0 commit comments

Comments
 (0)