Use onAfterUiUpdate where possible

This commit is contained in:
Aarni Koskela
2023-05-25 09:09:13 +03:00
parent bc53ecf298
commit dc7a1bbb1c
7 changed files with 7 additions and 9 deletions

View File

@@ -1,7 +1,7 @@
// attaches listeners to the txt2img and img2img galleries to update displayed generation param text when the image changes
let txt2img_gallery, img2img_gallery, modal = undefined;
onUiUpdate(function() {
onAfterUiUpdate(function() {
if (!txt2img_gallery) {
txt2img_gallery = attachGalleryListeners("txt2img");
}