Add support for getting window id from dialog
This commit is contained in:
parent
1b0dd43d3b
commit
9628642409
2 changed files with 5 additions and 1 deletions
|
|
@ -267,6 +267,10 @@ impl<M: Send + 'static> Dialog<M> {
|
|||
.map(DialogMessage)
|
||||
.map(self.mapper)
|
||||
}
|
||||
|
||||
pub fn window_id(&self) -> window::Id {
|
||||
self.cosmic.app.main_window_id()
|
||||
}
|
||||
}
|
||||
|
||||
#[derive(Clone, Debug)]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue