screen/panels: add action to process update

This commit is contained in:
Jordan Ruthe
2020-11-28 13:52:03 -05:00
parent 1c0e4fbf86
commit 728f9cfa0f
10 changed files with 34 additions and 12 deletions

View File

@@ -165,7 +165,7 @@ class KlipperScreen(Gtk.Window):
return
if hasattr(self.panels[panel_name],"process_update"):
self.panels[panel_name].process_update(self.printer.get_data())
self.panels[panel_name].process_update("notify_status_update", self.printer.get_data())
if hasattr(self.panels[panel_name],"activate"):
self.panels[panel_name].activate()
@@ -330,7 +330,7 @@ class KlipperScreen(Gtk.Window):
logger.debug(json.dumps([action, data], indent=2))
for sub in self.subscriptions:
self.panels[sub].process_update(data)
self.panels[sub].process_update(action, data)
def _confirm_send_action(self, widget, text, method, params):
_ = self.lang.gettext