clippy: Fix warnings
This commit is contained in:
parent
45fc2ca051
commit
e9389a3a18
2 changed files with 3 additions and 3 deletions
|
|
@ -922,7 +922,7 @@ impl LpImageWindow {
|
|||
}
|
||||
|
||||
fn on_fullscreen_changed(&self) {
|
||||
let is_fullscreen = self.try_window().map_or(false, |w| w.is_fullscreen());
|
||||
let is_fullscreen = self.try_window().is_some_and(|w| w.is_fullscreen());
|
||||
|
||||
let icon = if is_fullscreen {
|
||||
"view-restore-symbolic"
|
||||
|
|
@ -948,7 +948,7 @@ impl LpImageWindow {
|
|||
}
|
||||
|
||||
fn is_content_extended_to_top(&self) -> bool {
|
||||
self.try_window().map_or(false, |w| w.is_fullscreen())
|
||||
self.try_window().is_some_and(|w| w.is_fullscreen())
|
||||
&& !self.imp().properties_button.is_active()
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue