From 1aeb8b8340400e28219c17d7d2ee2a441ae1cd71 Mon Sep 17 00:00:00 2001 From: Héctor Ramón Jiménez Date: Wed, 4 May 2022 14:25:44 +0200 Subject: Show `Loading` screen when refreshing in `system_information` example --- examples/system_information/src/main.rs | 2 ++ 1 file changed, 2 insertions(+) (limited to 'examples/system_information/src/main.rs') diff --git a/examples/system_information/src/main.rs b/examples/system_information/src/main.rs index 704f5f4d..560220b8 100644 --- a/examples/system_information/src/main.rs +++ b/examples/system_information/src/main.rs @@ -42,6 +42,8 @@ impl Application for Example { fn update(&mut self, message: Message) -> Command { match message { Message::Refresh => { + *self = Self::Loading; + return system::fetch_information(Message::InformationReceived); } Message::InformationReceived(information) => { -- cgit