code: Fix clippy warnings

This commit is contained in:
Sophie Herold 2023-02-12 01:19:47 +01:00
parent 1d034cd53d
commit 19c8d69dca
2 changed files with 4 additions and 6 deletions

View file

@ -412,10 +412,8 @@ impl LpImageView {
}
if let Some(current_path) = self.current_path() {
if self.model().contains(&current_path) {
if !self.imp().preserve_content.get() {
self.update_sliding_view(&current_path);
}
if self.model().contains(&current_path) && !self.imp().preserve_content.get() {
self.update_sliding_view(&current_path);
}
}
}