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:
parent
5cdf5fc16a
commit
4994ec9b59
1 changed files with 3 additions and 0 deletions
|
|
@ -472,6 +472,9 @@ impl LpImageView {
|
||||||
if let Some(file) = image.file() {
|
if let Some(file) = image.file() {
|
||||||
log::debug!("Removing image with unsupported format {:?}", file.uri());
|
log::debug!("Removing image with unsupported format {:?}", file.uri());
|
||||||
obj.model().remove(&file);
|
obj.model().remove(&file);
|
||||||
|
if let Some(current_file) = obj.current_file() {
|
||||||
|
obj.update_sliding_view(¤t_file);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}),
|
}),
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue