Add setting to disable missing nodes dialog (#571)

* Add setting to disable missing nodes dialog

* nit

* nit
This commit is contained in:
Chenlei Hu
2024-08-21 10:31:07 -04:00
committed by GitHub
parent 2c1bd662e1
commit 743dc4879a
3 changed files with 17 additions and 1 deletions

View File

@@ -2157,12 +2157,20 @@ export class ComfyApp {
}
showMissingNodesError(missingNodeTypes, hasAddedNodes = true) {
if (this.vueAppReady)
if (
!this.ui.settings.getSettingValue(
'Comfy.Workflow.ShowMissingNodesWarning'
)
)
return
if (this.vueAppReady) {
showLoadWorkflowWarning({
missingNodeTypes,
hasAddedNodes,
maximizable: true
})
}
this.logging.addEntry('Comfy.App', 'warn', {
MissingNodes: missingNodeTypes