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