extrude: fix activate may not enable buttons
This commit is contained in:
1 parent
18f8d32aa6
commit
81e76b1815
1 file changed
+1
-2
+1
-2
@@ -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":
|
||||
|
||||
Reference in new issue
Block a user