-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Don't instantly delete an unreferenced attachment #3103
Comments
…tigates the problems of BoostIO#3103
I don't have a solution for this problem (i don't even know if there is a technical solution on how to do that..) but #3107 gives you 30 seconds to decide that you want to undo the change before the attachment is deleted :) |
just throwing some idea. |
the problem ist the last part: when and how do you crawl all folders with images/attachments in and delete unneeded ones? How do you trigger that job? i think debouncing the deletion can be a good workaround. Maybe it's enough :) |
i think the triggering point would be the moment of closing the application because undo can't be done after app close anyway. |
@hungrysnake at least the first idea dosen't work: after closing the app, the process is terminated. As far as i konw, there is no way to hook in at this point. |
@ehhc I'm not quite sure how it works in Electron, but I think it should be possible to hook in on process termination. Similar in how certain programs will ask you "Are you sure you want to exit?". A force termination of the process would be harder to hook into, so in that case we do need some clean-up of these files. To expand on @hungrysnake's suggestion: We could move the deleted image to a separate designated |
While this is now slightly mitigated I still think that the feature as I suggested in my previous comment would be really helpful. It would solve #3203 for example. |
Current behavior
when the note text with images is deleted, undoing the delete will only bring back the text, not the
Expected behavior
able to undo the deletion of images
Steps to reproduce
the text will come back but the image is not loaded because it is deleted in the filesystem
Environment
The text was updated successfully, but these errors were encountered: