Relayout base layer when layout is invalidated from an overlay

This commit is contained in:
Héctor Ramón Jiménez 2022-05-13 19:07:54 +02:00
parent 4c98de0a53
commit 296e157dcf
No known key found for this signature in database
GPG key ID: 140CC052C94F138E
2 changed files with 50 additions and 22 deletions

View file

@ -31,6 +31,11 @@ impl<'a, Message> Shell<'a, Message> {
}
}
/// Returns whether the current layout is invalid or not.
pub fn is_layout_invalid(&self) -> bool {
self.is_layout_invalid
}
/// Publish the given `Message` for an application to process it.
pub fn publish(&mut self, message: Message) {
self.messages.push(message);