instant refresh on paste

force triggering 'changed' on paste action
This commit is contained in:
ltdrdata 2023-04-23 21:04:06 +09:00
parent 80ec9a5ecf
commit 8af0b2b52e

View File

@ -172,8 +172,8 @@ export class ComfyApp {
ComfyApp.clipspace.widgets.forEach(({ type, name, value }) => { ComfyApp.clipspace.widgets.forEach(({ type, name, value }) => {
const prop = Object.values(this.widgets).find(obj => obj.type === type && obj.name === name); const prop = Object.values(this.widgets).find(obj => obj.type === type && obj.name === name);
if (prop) { if (prop) {
prop.value = value; prop.value = value;
} }
}); });
} }
@ -204,6 +204,7 @@ export class ComfyApp {
} }
} }
} }
this.trigger('changed');
} }
} }
} }