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.
This commit is contained in:
Sophie Herold 2023-08-27 22:05:46 +02:00
parent 042328c208
commit f97b878b7a

View file

@ -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 {