extrude: fix activate may not enable buttons

This commit is contained in:
alfrix 2024-01-15 14:42:07 -03:00
parent 18f8d32aa6
commit 81e76b1815

View File

@ -150,8 +150,7 @@ class Panel(ScreenPanel):
self.buttons[button].set_sensitive(enable)
def activate(self):
if self._printer.state == "printing":
self.enable_buttons(False)
self.enable_buttons(self._printer.state in ("ready", "paused"))
def process_update(self, action, data):
if action == "notify_gcode_response":