Skip to content

Commit

Permalink
nit
Browse files Browse the repository at this point in the history
  • Loading branch information
huchenlei committed Sep 5, 2024
1 parent 1f49659 commit 740a7fe
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/scripts/app.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down
5 changes: 4 additions & 1 deletion src/scripts/changeTracker.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
}
Expand Down
6 changes: 5 additions & 1 deletion src/scripts/workflows.ts
Original file line number Diff line number Diff line change
Expand Up @@ -305,7 +305,11 @@ export class ComfyWorkflow {
this.changeTracker.activeState,
true,
true,
this
this,
{
showMissingModelsDialog: false,
showMissingNodesDialog: false
}
)
} else {
const data = await this.getWorkflowData()
Expand Down

0 comments on commit 740a7fe

Please sign in to comment.