Skip to content

Commit

Permalink
update preview on Replace Preview
Browse files Browse the repository at this point in the history
  • Loading branch information
w-e-w committed Mar 10, 2024
1 parent 2e93bdc commit 9fd0cd6
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

3 comments on commit 9fd0cd6

@Dasor92
Copy link

@Dasor92 Dasor92 commented on 9fd0cd6 Apr 6, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This new line throws an exception 'MassFileLister' object has no attribute 'update_file_entry'

@w-e-w
Copy link
Collaborator Author

@w-e-w w-e-w commented on 9fd0cd6 Apr 6, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@Dasor92 can you send the full error trace


update no need

not sure hot it hapened but for some reason it seemes that the section was removed
https://github.com/AUTOMATIC1111/stable-diffusion-webui/pull/15199/files#diff-c39b942d8f8620d46d314db8301189b8d6195fc97aedbeb124a33694b738d69cR151-R155

thanks for the notice

@w-e-w
Copy link
Collaborator Author

@w-e-w w-e-w commented on 9fd0cd6 Apr 6, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fix PR #15446

Please sign in to comment.