DiffusionToolkit
DiffusionToolkit copied to clipboard
option to delete the file
currently delete will only darken the image, mark for future deletion from the database. ctrl+delete only deleted from the database. there is no delete file. alt and delete are close enough together that they could work.
There is a "tab" called Recycle bin. All images tagged for deletion are placed there. The idea is that it is faster UI-wise to tag multiple images for deletion while browsing through them, then press Edit > Empty Recycle Bin.
This is mentioned in the documentation.
If I allowed deleting per file and refreshing the list, it would be slower and more taxing on the drive. There are optimizations I could make to allow single deletion and refreshing the screen, but I prefer tagging this way.
One more thing, the File.Delete function skips the Windows Recycle Bin, meaning deletions in DT are permanent. Again there is a way to allow Windows Recycle Bin to take over, but it was not simple code, and not a priority in the past.
I could put Shift-Delete as a permanent immediate delete that skips the DT Recycle bin, but I would put a warning that the delete is permanent, then maybe add an option to hide the warning.
It's important the user's images are not irretrievably deleted unless the user is sure.
Regardless of whether you keep this in-between workflow or not, I think it's better to move to recycle bin instead of permanent delete because it respects the OS behavior. Interesting that delete to recycle bin is more complicated code, it looks like a simple move to folder operation.