mirror of
https://git.datalinker.icu/comfyanonymous/ComfyUI
synced 2026-11-20 16:27:14 +08:00
use onAfterGraphConfigured
This commit is contained in:
parent
b342654b5f
commit
7eb6dae919
@ -151,9 +151,9 @@ app.registerExtension({
|
|||||||
audioWidget.callback = onAudioWidgetUpdate
|
audioWidget.callback = onAudioWidgetUpdate
|
||||||
|
|
||||||
// Load saved audio file widget values if restoring from workflow
|
// Load saved audio file widget values if restoring from workflow
|
||||||
const onGraphConfigured = node.onGraphConfigured;
|
const onAfterGraphConfigured = node.onAfterGraphConfigured;
|
||||||
node.onGraphConfigured = () => {
|
node.onAfterGraphConfigured = () => {
|
||||||
onGraphConfigured?.apply(this, arguments)
|
onAfterGraphConfigured?.apply(this, arguments)
|
||||||
if (audioWidget.value) {
|
if (audioWidget.value) {
|
||||||
onAudioWidgetUpdate()
|
onAudioWidgetUpdate()
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user