try to restart ks if an update fails to restart it

This commit is contained in:
alfrix 2022-11-27 15:10:55 -03:00
parent db4e5d4e08
commit 217b185730

View File

@ -707,6 +707,8 @@ class KlipperScreen(Gtk.Window):
if 'message' in data and 'Error' in data['message']:
logging.error(f"{action}:{data['message']}")
self.show_popup_message(data['message'], 3)
if "KlipperScreen" in data['message']:
self.restart_ks()
elif action == "notify_power_changed":
logging.debug("Power status changed: %s", data)
self.printer.process_power_update(data)