AlUlkesh/sd_delete_button

Image deleted, but still in preview window after a new generation

Aamir3d opened this issue · 4 comments

Two issues actually

  1. The image gets deleted, but if there's a new generation, the deleted image still stays in the preview window (Happens sometimes, not all the time)

  2. The prompt text doesn't change (the behavior should be that if an image is deleted, and a new image is generated, the "image deleted" text should go away.

  3. Image deleted text shows CORRECTLY after deleting a bad generation
    image

  4. After generating a new image, the text still shows
    image

With this commit, the info field doesn't show the last message anymore, when a new generation is started.

The preview issue is much trickier. The problem is, that depending on what you change for a new generation, the new filename will be the same as the deleted filename. In this case apparently the browser uses its cache and shows the old image.

I have no idea yet, how this could be fixed...

With this commit, the info field doesn't show the last message anymore, when a new generation is started.

The preview issue is much trickier. The problem is, that depending on what you change for a new generation, the new filename will be the same as the deleted filename. In this case apparently the browser uses its cache and shows the old image.

I have no idea yet, how this could be fixed...

Interesting info, I'll make sure to be more careful.
Thank you for being so proactive!

An easy temporary fix (client side) is changing the filename pattern:

Settings > Saving images/grids > Images filename pattern
[datetime<%Y%m%d_%H%M%S_%f>]-[seed] = 20240122_001744_666968-193762924.png
This includes microseconds to ensure 100% unique filenames, according to the Wiki (might be necessary with certain extensions only)

Also, thank you so, so much for this extension. It's a must-have for me!

@lrichert Great idea! Thanks.