screen: Catch "startup" state from moonraker
This commit is contained in:
parent
9f4204b898
commit
07554250ad
@ -454,8 +454,10 @@ class KlipperScreen(Gtk.Window):
|
|||||||
else:
|
else:
|
||||||
self.files.add_timeout()
|
self.files.add_timeout()
|
||||||
|
|
||||||
if printer_info['result']['state'] in ("error","shutdown"):
|
if printer_info['result']['state'] in ("error","shutdown","startup"):
|
||||||
if "FIRMWARE_RESTART" in printer_info['result']['state_message']:
|
if printer_info['result']['state'] == "startup":
|
||||||
|
self.printer_initializing(_("Klipper is attempting to start"))
|
||||||
|
elif "FIRMWARE_RESTART" in printer_info['result']['state_message']:
|
||||||
self.printer_initializing(
|
self.printer_initializing(
|
||||||
_("Klipper has encountered an error.\nIssue a FIRMWARE_RESTART to attempt fixing the issue.")
|
_("Klipper has encountered an error.\nIssue a FIRMWARE_RESTART to attempt fixing the issue.")
|
||||||
)
|
)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user