zcalibrate: fix dialog loop, fix popup errors not showing at end #844

This commit is contained in:
alfrix 2023-02-06 12:14:39 -06:00
parent dcb6d18709
commit a6bb0fd02e
2 changed files with 1 additions and 2 deletions

View File

@ -244,7 +244,6 @@ class ZCalibratePanel(ScreenPanel):
logging.info(data)
elif "save_config" in data:
self.buttons_not_calibrating()
self._screen.show_popup_message(_("Calibrated, save configuration to make it permanent"), level=1)
elif "out of range" in data:
self._screen.show_popup_message(data)
self.buttons_not_calibrating()

View File

@ -727,7 +727,7 @@ class KlipperScreen(Gtk.Window):
elif "unknown" in data.lower() and \
not ("TESTZ" in data or "MEASURE_AXES_NOISE" in data or "ACCELEROMETER_QUERY" in data):
self.show_popup_message(data)
if "SAVE_CONFIG" in data and self.printer.state == "ready":
elif "SAVE_CONFIG" in data and self.printer.state == "ready":
script = {"script": "SAVE_CONFIG"}
self._confirm_send_action(
None,