try to restart ks if an update fails to restart it
This commit is contained in:
parent
db4e5d4e08
commit
217b185730
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user