From 061cdb913b04aa6cd7e29cf0cc285227ac21846a Mon Sep 17 00:00:00 2001 From: Clement Tsang <34804052+ClementTsang@users.noreply.github.com> Date: Thu, 17 Dec 2020 14:38:41 -0800 Subject: [PATCH] bug: Fix missing component list refresh (#361) --- src/app/data_harvester.rs | 5 +++++ 1 file changed, 5 insertions(+) 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...");