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:
Ashley Wulber 2025-11-12 13:36:00 -05:00 committed by Ashley Wulber
parent 84f1d6b7a9
commit 04d3e1ed59

View file

@ -186,8 +186,7 @@ pub fn get_popup_toplevel(popup: &PopupSurface) -> Option<WlSurface> {
.parent
.as_ref()
.cloned()
.unwrap()
});
})?;
}
Some(parent)
}