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:
parent
e2f70a1215
commit
2c7d06c980
1 changed files with 4 additions and 0 deletions
|
|
@ -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)]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue