From f97b878b7a518ae388143aae3872c4e52721b9b0 Mon Sep 17 00:00:00 2001 From: Sophie Herold Date: Sun, 27 Aug 2023 22:05:46 +0200 Subject: [PATCH] window: Allow to delete non-native image files Only check if there is a path. With testing for native the deletion in SMB etc is not possible that we support properly. --- src/window.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/window.rs b/src/window.rs index f7f1ba8..de3844e 100644 --- a/src/window.rs +++ b/src/window.rs @@ -691,7 +691,7 @@ impl LpWindow { "win.trash", imp.image_view .current_file() - .is_some_and(|file| file.is_native()), + .is_some_and(|file| file.path().is_some()), ); if shows_image {