pause will auto-open extrude

most (maybe all pauses) are done for filament swaps this should make it quicker
This commit is contained in:
alfrix 2023-08-31 22:44:10 -03:00
parent e01b6e5f26
commit a6866e8a0f

View File

@ -162,7 +162,7 @@ class KlipperScreen(Gtk.Window):
state_callbacks = {
"disconnected": self.state_disconnected,
"error": self.state_error,
"paused": self.state_printing,
"paused": self.state_paused,
"printing": self.state_printing,
"ready": self.state_ready,
"startup": self.state_startup,
@ -660,6 +660,10 @@ class KlipperScreen(Gtk.Window):
msg += _("Please recompile and flash the micro-controller.") + "\n"
self.printer_initializing(msg + "\n" + state, remove=True)
def state_paused(self):
self.state_printing()
self.show_panel("extrude", _("Extrude"))
def state_printing(self):
self.close_screensaver()
for dialog in self.dialogs: