summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorClement Tsang <34804052+ClementTsang@users.noreply.github.com>2020-12-17 14:38:41 -0800
committerGitHub <noreply@github.com>2020-12-17 17:38:41 -0500
commit061cdb913b04aa6cd7e29cf0cc285227ac21846a (patch)
tree6b22bcce4699f4c6874ab79964f8b62a88231360
parent4471ecc16162edce8616f5b92c756a5fd46cccd4 (diff)
bug: Fix missing component list refresh (#361)
-rw-r--r--src/app/data_harvester.rs5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/app/data_harvester.rs b/src/app/data_harvester.rs
index 7f25539a..9915e6d0 100644
--- a/src/app/data_harvester.rs
+++ b/src/app/data_harvester.rs
@@ -145,6 +145,11 @@ impl DataCollector {
}
}
+ // Refresh components list once...
+ if self.widgets_to_harvest.use_temp {
+ self.sys.refresh_components_list();
+ }
+
// trace!("Running first run.");
futures::executor::block_on(self.update_data());
// trace!("First run done. Sleeping for 250ms...");