edit_window: Handle CancellableFuture errors

Ignore the cancellation and instead check for actual errors inside an
uncanceled operation.
This commit is contained in:
Sophie Herold 2025-02-13 14:53:28 +01:00
parent a042bad7e6
commit 828306c206
4 changed files with 48 additions and 25 deletions

View file

@ -248,7 +248,7 @@ impl LpWindow {
}
pub fn show_specific_image(&self, file: gio::File) {
log::debug!("Showting specific image: {}", file.uri());
log::debug!("Showing specific image: {}", file.uri());
self.image_view().set_images_from_files(vec![file]);
self.show_image();
}