diff -r 4f56142e7497 -r 2a44b9649212 ui.py --- a/ui.py Fri Jan 26 19:04:04 2018 +0000 +++ b/ui.py Sat Jan 27 12:19:39 2018 +0000 @@ -240,11 +240,13 @@ self.title=title def __status_callback(self, index, status, errorlog=None): - logger.debug('Status callback: %s' % str(status)) - + logger.debug("Tray status callback") with self.lock: self.statuses[index]=status - if self.refresh_timer==None and not self.refresh_timer_time: + # Time the refresh if it has not been timed, or if the timer + # is timing for the "long-term" (refresh_timer_time set) + if not self.refresh_timer or self.refresh_timer_time: + logger.debug("Timing refresh") self.refresh_timer=Timer(refresh_interval, self.refresh_ui) # refresh_timer_time is only set for "long-term timers" self.refresh_timer_time=None