mirror of
https://github.com/AUTOMATIC1111/stable-diffusion-webui.git
synced 2025-01-01 12:25:06 +08:00
update preview on Replace Preview
This commit is contained in:
parent
2e93bdce0c
commit
9fd0cd6a80
@ -187,7 +187,8 @@ class UserMetadataEditor:
|
|||||||
geninfo, items = images.read_info_from_image(image)
|
geninfo, items = images.read_info_from_image(image)
|
||||||
|
|
||||||
images.save_image_with_geninfo(image, geninfo, item["local_preview"])
|
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), ''
|
return self.get_card_html(name), ''
|
||||||
|
|
||||||
def setup_ui(self, gallery):
|
def setup_ui(self, gallery):
|
||||||
|
Loading…
Reference in New Issue
Block a user