Merge pull request #15201 from AUTOMATIC1111/update-preview-on-Replace-Preview

update preview on Replace Preview
This commit is contained in:
AUTOMATIC1111 2024-03-10 14:11:26 +03:00 committed by GitHub
commit edc56202c1
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 1 deletions

View File

@ -187,7 +187,8 @@ class UserMetadataEditor:
geninfo, items = images.read_info_from_image(image)
images.save_image_with_geninfo(image, geninfo, item["local_preview"])
self.page.lister.update_file_entry(item["local_preview"])
item['preview'] = self.page.find_preview(item["local_preview"])
return self.get_card_html(name), ''
def setup_ui(self, gallery):