@@ -76,7 +76,6 @@ def __init__(
7676 super ().__init__ (parent )
7777 self ._active_z_offset : float = 0.0
7878 self ._finish_print_handled : bool = False
79- self ._pending_save_offset : float = 0.0
8079 self ._z_apply_command : str = "Z_OFFSET_APPLY_ENDSTOP"
8180
8281 self .setupMainPrintPage ()
@@ -334,8 +333,8 @@ def delete_file(self, filename: str, directory: str = "gcodes") -> None:
334333
335334 def save_config (self ) -> None :
336335 """Handle Save configuration behaviour, shows confirmation dialog"""
337- self . _pending_save_offset = self . _active_z_offset
338- self .babystepPage .bbp_z_offset_title_label .setText (f"Z: { self ._pending_save_offset :.3f} mm" )
336+
337+ self .babystepPage .bbp_z_offset_title_label .setText (f"Z: { self ._active_z_offset :.3f} mm" )
339338 self .BasePopup_z_offset .set_message (
340339 f"The Z-Offset is now { self ._active_z_offset :.3f} mm.\n "
341340 "Would you like to save this change permanently?\n "
@@ -356,7 +355,7 @@ def update_configuration_file(self) -> None:
356355 except (RuntimeError , TypeError ):
357356 pass
358357 self .run_gcode_signal .emit (
359- f"SET_GCODE_OFFSET Z={ self ._pending_save_offset :.3f} MOVE=0"
358+ f"SET_GCODE_OFFSET Z={ self ._active_z_offset :.3f} MOVE=0"
360359 )
361360 self .run_gcode_signal .emit (self ._z_apply_command )
362361 self .run_gcode_signal .emit ("SAVE_CONFIG" )
0 commit comments