breadboard icon indicating copy to clipboard operation
breadboard copied to clipboard

[Feature Request] Prevent 'liked' or marked images from being deleted.

Open Cornmeister opened this issue 1 year ago • 2 comments

First of all, great tool!

I downloaded it for cleaning my StableDiffusion output folder. I'm going to trash almost every image, but there are some I would like to keep.

I would like to see an option to mark an image as 'do not delete'. Probably you can use the Like icon for it. When I have selected the best images, I should be able to select all, and press the delete button, without deleting the marked images.

Cornmeister avatar Mar 01 '23 12:03 Cornmeister

I definitely think this is a "must have" feature. It stands to reason if I mark something "liked" that I wouldn't want to delete it.

To keep it from maybe being too imposing it would be fine with me if there was a checkbox (unchecked by default) in the deletion dialog so only non-liked images are deleted unless the box is checked.

Seems pretty simple to do using something like this: https://www.christianengvall.se/electron-show-messagebox/

Maybe if I have the time (and don't forget about it) I'll submit a pull request.

MalikKillian avatar May 08 '23 14:05 MalikKillian

I made a PR. Hopefully it's accepted soon. I know the maintainer has been busier with other stuff.

I wanted to make a fancy dialog with a checkbox but that gets tricky because most logic is in breadmachine. Didn't want to switch to a HTML-based popup just for this. https://github.com/t4t5/sweetalert looks cool but I hate to add more dependencies to what is a fairly lean project.

MalikKillian avatar Jul 13 '23 20:07 MalikKillian