all: use let chains
This commit is contained in:
parent
3d5d146d65
commit
286857971a
89 changed files with 1516 additions and 1574 deletions
|
|
@ -371,10 +371,10 @@ impl StackedNode for XdgPopup {
|
|||
|
||||
fn stacked_set_visible(&self, visible: bool) {
|
||||
if visible {
|
||||
if let Some(parent) = self.parent.get() {
|
||||
if !parent.visible() {
|
||||
return;
|
||||
}
|
||||
if let Some(parent) = self.parent.get()
|
||||
&& !parent.visible()
|
||||
{
|
||||
return;
|
||||
}
|
||||
}
|
||||
self.set_visible(visible);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue