Show Loading screen when refreshing in system_information example

This commit is contained in:
Héctor Ramón Jiménez 2022-05-04 14:25:44 +02:00
parent f1ec0af507
commit 1aeb8b8340
No known key found for this signature in database
GPG key ID: 140CC052C94F138E

View file

@ -42,6 +42,8 @@ impl Application for Example {
fn update(&mut self, message: Message) -> Command<Message> {
match message {
Message::Refresh => {
*self = Self::Loading;
return system::fetch_information(Message::InformationReceived);
}
Message::InformationReceived(information) => {