From a6866e8a0fe643af0f1cc92ce179f0940a7e5fb0 Mon Sep 17 00:00:00 2001 From: alfrix Date: Thu, 31 Aug 2023 22:44:10 -0300 Subject: [PATCH] pause will auto-open extrude most (maybe all pauses) are done for filament swaps this should make it quicker --- screen.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/screen.py b/screen.py index ebf3b643..07fa7a7b 100755 --- a/screen.py +++ b/screen.py @@ -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: