fix(applets): multi-window fix (#42)
This commit is contained in:
parent
82ac6aac1c
commit
cd299892b2
4 changed files with 55 additions and 36 deletions
|
|
@ -418,6 +418,10 @@ impl Application for SettingsApp {
|
|||
fn close_requested(&self, id: window::Id) -> Self::Message {
|
||||
if id == window::Id(0) {
|
||||
Message::Close
|
||||
} else if id == applets::ADD_APPLET_DIALOGUE_ID {
|
||||
Message::PageMessage(crate::pages::Message::Applet(
|
||||
applets::Message::ClosedAppletDialogue,
|
||||
))
|
||||
} else {
|
||||
Message::None
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue