improv: messages now automatically convert into cosmic::app::Message

This commit is contained in:
Michael Aaron Murphy 2024-05-21 05:12:41 +02:00
parent 752662eedf
commit 0607161276
No known key found for this signature in database
GPG key ID: B2732D4240C9212C
2 changed files with 10 additions and 10 deletions

View file

@ -139,8 +139,7 @@ impl cosmic::Application for App {
// Send this back to the application.
Message::FileRead(url, contents)
})
.map(Into::into);
});
}
// Creates a new open dialog.
@ -167,8 +166,7 @@ impl cosmic::Application for App {
Err(why) => Message::OpenError(Arc::new(why)),
}
})
.map(Into::into);
});
}
// Displays an error in the application's warning bar.