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 committed 2023-09-01 12:23:41 -03:00
1 parent e01b6e5f26
commit a6866e8a0f
1 file changed
+5 -1
+5 -1
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: