yfszzx / stable-diffusion-webui-images-browser

an images browse for stable-diffusion-webui
489 stars 232 forks source link

[Bug]: Using arrow keys to navigate and clicking "delete", deletes the wrong image #12

Open Manimap opened 2 years ago

Manimap commented 2 years ago

Hi, I'm copy pasting the same bug as it was referenced here, and is still happening with latest commit : https://github.com/AUTOMATIC1111/stable-diffusion-webui/issues/3371

What happened?

It is probably linked to https://github.com/AUTOMATIC1111/stable-diffusion-webui/issues/2749

Basically if you click on an image in Image Browser tab, go right using the keyboard key, then click delete, it will delete the image prior to clicking the right arrow key and not the one highlighted/shown. It was quite frustrating since it deleted images I wanted to keep by mistake.

tychoid commented 2 years ago

Was just about to post this. Has been a bug for a long while. The main image viewer/preview/carousel is changed/updated using the arrow keys, but the actual image and metadata loaded in the "backend" is not updated, causing the wrong one to deleted when using delete.

allkhor commented 2 years ago

This awful i was deleted several cool images before found this bug. I think this must be a high priority task to solve this first!

lustfeind commented 1 year ago

Same here. Also moving to favorites folder moves the wrong picture. I noticed that this happens when some pictures was added oder deleted before and the image browser view is not updated. This is a real problem and I deleted accidentally some of my best pictures.

wardboumans commented 1 year ago

Yes, can confirm this bug.