fix: clear popup state when it is dismissed by the compositor
This commit is contained in:
parent
f4cc4cecd0
commit
56d96e5282
8 changed files with 75 additions and 0 deletions
|
|
@ -412,4 +412,8 @@ impl cosmic::Application for Window {
|
|||
fn style(&self) -> Option<<Theme as application::StyleSheet>::Style> {
|
||||
Some(cosmic::app::applet::style())
|
||||
}
|
||||
|
||||
fn on_close_requested(&self, id: window::Id) -> Option<Message> {
|
||||
Some(Message::PopupClosed(id))
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue