mirror of
https://github.com/Comfy-Org/ComfyUI_frontend.git
synced 2026-02-07 00:20:07 +00:00
Allow skipping workflow validation (#355)
This commit is contained in:
@@ -44,6 +44,7 @@ import {
|
||||
import { Vector2 } from '@comfyorg/litegraph'
|
||||
import _ from 'lodash'
|
||||
import { showLoadWorkflowWarning } from '@/services/dialogService'
|
||||
import { useSettingStore } from '@/stores/settingStore'
|
||||
|
||||
export const ANIM_PREVIEW_WIDGET = '$$comfy_animation_preview'
|
||||
|
||||
@@ -2178,8 +2179,13 @@ export class ComfyApp {
|
||||
console.error(error)
|
||||
}
|
||||
|
||||
graphData = await validateComfyWorkflow(graphData, /* onError=*/ alert)
|
||||
if (!graphData) return
|
||||
if (
|
||||
this.vueAppReady &&
|
||||
useSettingStore().get<boolean>('Comfy.Validation.Workflows')
|
||||
) {
|
||||
graphData = await validateComfyWorkflow(graphData, /* onError=*/ alert)
|
||||
if (!graphData) return
|
||||
}
|
||||
|
||||
const missingNodeTypes = []
|
||||
await this.#invokeExtensionsAsync(
|
||||
|
||||
@@ -56,6 +56,13 @@ export const useSettingStore = defineStore('setting', {
|
||||
this.settingValues[id] = value
|
||||
}
|
||||
this.settings = settings.settingsParamLookup
|
||||
|
||||
app.ui.settings.addSetting({
|
||||
id: 'Comfy.Validation.Workflows',
|
||||
name: 'Validate workflows',
|
||||
type: 'boolean',
|
||||
defaultValue: true
|
||||
})
|
||||
},
|
||||
|
||||
set(key: string, value: any) {
|
||||
|
||||
Reference in New Issue
Block a user