screen: do not ask to save unless printer is in standby close #692
This commit is contained in:
parent
0ec2baf302
commit
835803d329
@ -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,
|
||||
|
Loading…
x
Reference in New Issue
Block a user