File tree Expand file tree Collapse file tree 2 files changed +15
-2
lines changed Expand file tree Collapse file tree 2 files changed +15
-2
lines changed Original file line number Diff line number Diff line change @@ -44,6 +44,7 @@ import {
4444import { Vector2 } from '@comfyorg/litegraph'
4545import _ from 'lodash'
4646import { showLoadWorkflowWarning } from '@/services/dialogService'
47+ import { useSettingStore } from '@/stores/settingStore'
4748
4849export const ANIM_PREVIEW_WIDGET = '$$comfy_animation_preview'
4950
@@ -2178,8 +2179,13 @@ export class ComfyApp {
21782179 console . error ( error )
21792180 }
21802181
2181- graphData = await validateComfyWorkflow ( graphData , /* onError=*/ alert )
2182- if ( ! graphData ) return
2182+ if (
2183+ this . vueAppReady &&
2184+ useSettingStore ( ) . get < boolean > ( 'Comfy.Validation.Workflows' )
2185+ ) {
2186+ graphData = await validateComfyWorkflow ( graphData , /* onError=*/ alert )
2187+ if ( ! graphData ) return
2188+ }
21832189
21842190 const missingNodeTypes = [ ]
21852191 await this . #invokeExtensionsAsync(
Original file line number Diff line number Diff line change @@ -56,6 +56,13 @@ export const useSettingStore = defineStore('setting', {
5656 this . settingValues [ id ] = value
5757 }
5858 this . settings = settings . settingsParamLookup
59+
60+ app . ui . settings . addSetting ( {
61+ id : 'Comfy.Validation.Workflows' ,
62+ name : 'Validate workflows' ,
63+ type : 'boolean' ,
64+ defaultValue : true
65+ } )
5966 } ,
6067
6168 set ( key : string , value : any ) {
You can’t perform that action at this time.
0 commit comments