From b42043bc795764e919ebfc01d7fc5c48419970d5 Mon Sep 17 00:00:00 2001 From: alfrix Date: Wed, 13 Apr 2022 20:06:02 -0300 Subject: [PATCH] job_status fix issue with delta printers fixes #587 --- panels/job_status.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/panels/job_status.py b/panels/job_status.py index 710b4037..17f352f0 100644 --- a/panels/job_status.py +++ b/panels/job_status.py @@ -567,7 +567,9 @@ class JobStatusPanel(ScreenPanel): self.enable_button("resume", "cancel") else: if self.zoffset != 0: - if not self._screen.printer.get_config_section("stepper_z")['endstop_pin'].startswith("probe"): + endstop = (self._screen.printer.config_section_exists("stepper_z") and + not self._screen.printer.get_config_section("stepper_z")['endstop_pin'].startswith("probe")) + if endstop: self.labels['button_grid'].attach(self.labels["save_offset_endstop"], 0, 0, 1, 1) else: self.labels['button_grid'].attach(Gtk.Label(""), 0, 0, 1, 1)