trash: Use non-existing name when restoring image

We usually use the original path of the image.
For the rare case the original file name exists we create
one that is not used yet.

Closes #66

Part-of: <https://gitlab.gnome.org/Incubator/loupe/-/merge_requests/130>
This commit is contained in:
Sophie Herold 2023-03-09 04:13:48 +01:00 • committed by Marge Bot
parent ddf4b8c2fa
commit f8e64d9805
2 changed files with 30 additions and 3 deletions

View file

@ -533,7 +533,7 @@ impl LpWindow {
/// Permanently delete image
///
/// Fallback for when trash no available
/// Fallback for when trash not available
async fn delete(&self, path: &Path) {
let dialog = adw::MessageDialog::builder()
.modal(true)