Skip to content

Commit

Permalink
Merge pull request #15201 from AUTOMATIC1111/update-preview-on-Replac…
Browse files Browse the repository at this point in the history
…e-Preview

update preview on Replace Preview
  • Loading branch information
AUTOMATIC1111 authored Mar 10, 2024
2 parents 2e93bdc + 9fd0cd6 commit edc5620
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion modules/ui_extra_networks_user_metadata.py
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,8 @@ def save_preview(self, index, gallery, name):
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):
Expand Down

0 comments on commit edc5620

Please sign in to comment.