screen: do not ask to save unless printer is in standby close #692
This commit is contained in:
1 parent
0ec2baf302
commit
835803d329
1 file changed
+1
-1
@@ -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,
|
||||
|
||||
Reference in new issue
Block a user