job_status: refactor

This commit is contained in:
alfrix
2022-11-25 05:03:57 -03:00
parent c630178f0c
commit b5cf73054a
2 changed files with 154 additions and 200 deletions

View File

@@ -741,8 +741,10 @@ class KlipperScreen(Gtk.Window):
script
)
self.base_panel.process_update(action, data)
if self._cur_panels and self._cur_panels[-1] in self.subscriptions:
self.panels[self._cur_panels[-1]].process_update(action, data)
for x in self.subscriptions:
self.panels[x].process_update(action, data)
if "job_status" in self._cur_panels:
self.panels["job_status"].process_update(action, data)
def _confirm_send_action(self, widget, text, method, params=None):
buttons = [