chore: add method for checking if a dialog tracks a surface

needed to call viewor update on the dialog popups
This commit is contained in:
Ashley Wulber 2025-11-17 17:58:08 -05:00
parent e2f70a1215
commit 2c7d06c980
No known key found for this signature in database
GPG key ID: 5216D4F46A90A820

View file

@ -388,6 +388,10 @@ impl<M: Send + 'static> Dialog<M> {
pub const fn window_id(&self) -> window::Id {
self.cosmic.app.flags.window_id
}
pub fn contains_surface(&self, id: &window::Id) -> bool {
self.cosmic.surface_views.contains_key(id)
}
}
#[derive(Clone, Debug)]