fix(applets): multi-window fix (#42)

This commit is contained in:
Ashley Wulber 2023-06-06 15:42:42 -04:00 committed by GitHub
parent 82ac6aac1c
commit cd299892b2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 55 additions and 36 deletions

View file

@ -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
}