mirror of
https://github.com/Comfy-Org/ComfyUI_frontend.git
synced 2026-04-29 10:42:44 +00:00
Never restore view when setting is disabled (#3975)
This commit is contained in:
Binary file not shown.
|
Before Width: | Height: | Size: 80 KiB After Width: | Height: | Size: 57 KiB |
@@ -1074,11 +1074,11 @@ export class ComfyApp {
|
|||||||
try {
|
try {
|
||||||
// @ts-expect-error Discrepancies between zod and litegraph - in progress
|
// @ts-expect-error Discrepancies between zod and litegraph - in progress
|
||||||
this.graph.configure(graphData)
|
this.graph.configure(graphData)
|
||||||
if (restore_view) {
|
if (
|
||||||
if (
|
restore_view &&
|
||||||
useSettingStore().get('Comfy.EnableWorkflowViewRestore') &&
|
useSettingStore().get('Comfy.EnableWorkflowViewRestore')
|
||||||
graphData.extra?.ds
|
) {
|
||||||
) {
|
if (graphData.extra?.ds) {
|
||||||
this.canvas.ds.offset = graphData.extra.ds.offset
|
this.canvas.ds.offset = graphData.extra.ds.offset
|
||||||
this.canvas.ds.scale = graphData.extra.ds.scale
|
this.canvas.ds.scale = graphData.extra.ds.scale
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
Reference in New Issue
Block a user