Skip to content

Commit

Permalink
Show Loading screen when refreshing in system_information example
Browse files Browse the repository at this point in the history
  • Loading branch information
hecrj committed May 4, 2022
1 parent f1ec0af commit 1aeb8b8
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions examples/system_information/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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) => {
Expand Down

0 comments on commit 1aeb8b8

Please sign in to comment.