imageView: Update SlidingView after removing image

When unsupported images formats were detected the image
was not removed from the SlidingView if already preloaded.
This caused weird hickups.

Fixes #233
This commit is contained in:
Sophie Herold 2023-09-05 19:16:30 +02:00
parent 5cdf5fc16a
commit 4994ec9b59

View file

@ -472,6 +472,9 @@ impl LpImageView {
if let Some(file) = image.file() {
log::debug!("Removing image with unsupported format {:?}", file.uri());
obj.model().remove(&file);
if let Some(current_file) = obj.current_file() {
obj.update_sliding_view(&current_file);
}
}
}
}),