extrude: fix activate may not enable buttons

This commit is contained in:
alfrix committed 2024-01-15 14:42:10 -03:00
1 parent 18f8d32aa6
commit 81e76b1815
1 file changed
+1 -2
+1 -2
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":