fix(popup): avoid panic when None
cosmic-comp panics here after launching an app from the app tray overflow popup. While it may indicate a panel issue that I also need to look into, it seems to work fine if we don't unwrap on this option.
This commit is contained in:
parent
84f1d6b7a9
commit
04d3e1ed59
1 changed files with 1 additions and 2 deletions
|
|
@ -186,8 +186,7 @@ pub fn get_popup_toplevel(popup: &PopupSurface) -> Option<WlSurface> {
|
||||||
.parent
|
.parent
|
||||||
.as_ref()
|
.as_ref()
|
||||||
.cloned()
|
.cloned()
|
||||||
.unwrap()
|
})?;
|
||||||
});
|
|
||||||
}
|
}
|
||||||
Some(parent)
|
Some(parent)
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue