From 740a7fe8b5f90fee8eca4499ae78a15ccef118a7 Mon Sep 17 00:00:00 2001 From: huchenlei Date: Thu, 5 Sep 2024 10:51:48 -0400 Subject: [PATCH] nit --- src/scripts/app.ts | 2 +- src/scripts/changeTracker.ts | 5 ++++- src/scripts/workflows.ts | 6 +++++- 3 files changed, 10 insertions(+), 3 deletions(-) diff --git a/src/scripts/app.ts b/src/scripts/app.ts index 93e16f667..faee493cf 100644 --- a/src/scripts/app.ts +++ b/src/scripts/app.ts @@ -2207,7 +2207,7 @@ export class ComfyApp { clean: boolean = true, restore_view: boolean = true, workflow: string | null | ComfyWorkflow = null, - { showMissingNodesDialog = false, showMissingModelsDialog = false } = {} + { showMissingNodesDialog = true, showMissingModelsDialog = true } = {} ) { if (clean !== false) { this.clean() diff --git a/src/scripts/changeTracker.ts b/src/scripts/changeTracker.ts index e4a4ddc07..210cfd2cf 100644 --- a/src/scripts/changeTracker.ts +++ b/src/scripts/changeTracker.ts @@ -72,7 +72,10 @@ export class ChangeTracker { if (prevState) { target.push(this.activeState) this.isOurLoad = true - await this.app.loadGraphData(prevState, false, false, this.workflow) + await this.app.loadGraphData(prevState, false, false, this.workflow, { + showMissingModelsDialog: false, + showMissingNodesDialog: false + }) this.activeState = prevState } } diff --git a/src/scripts/workflows.ts b/src/scripts/workflows.ts index ecd77f6a5..b764f40f9 100644 --- a/src/scripts/workflows.ts +++ b/src/scripts/workflows.ts @@ -305,7 +305,11 @@ export class ComfyWorkflow { this.changeTracker.activeState, true, true, - this + this, + { + showMissingModelsDialog: false, + showMissingNodesDialog: false + } ) } else { const data = await this.getWorkflowData()