From 835803d329e093594f4f9e66fb42ec627fad608a Mon Sep 17 00:00:00 2001 From: alfrix Date: Wed, 3 Aug 2022 11:56:02 -0300 Subject: [PATCH] screen: do not ask to save unless printer is in standby close #692 --- screen.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/screen.py b/screen.py index 29d314b9..88b146b5 100644 --- a/screen.py +++ b/screen.py @@ -856,7 +856,7 @@ class KlipperScreen(Gtk.Window): elif data.startswith("!! "): self.show_popup_message(data[3:], 3) logging.debug(json.dumps([action, data], indent=2)) - if "SAVE_CONFIG" in data: + if "SAVE_CONFIG" in data and self.printer.get_state() == "ready": script = {"script": "SAVE_CONFIG"} self._confirm_send_action( None,