From b04064081330bd5464442c0d8e7e4d93420a7859 Mon Sep 17 00:00:00 2001 From: Eric Callahan Date: Thu, 26 Aug 2021 15:38:30 -0400 Subject: [PATCH] update_manager: broadcast update_refreshed notification in the status refresh handler Signed-off-by: Eric Callahan --- moonraker/components/update_manager/update_manager.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/moonraker/components/update_manager/update_manager.py b/moonraker/components/update_manager/update_manager.py index 64a8644..559ea04 100644 --- a/moonraker/components/update_manager/update_manager.py +++ b/moonraker/components/update_manager/update_manager.py @@ -409,6 +409,11 @@ class UpdateManager: ret = self.cmd_helper.get_rate_limit_stats() ret['version_info'] = vinfo ret['busy'] = self.cmd_helper.is_update_busy() + if need_refresh: + event_loop = self.server.get_event_loop() + event_loop.delay_callback( + .2, self.server.send_event, + "update_manager:update_refreshed", ret) return ret async def _handle_repo_recovery(self,