extrude: fix activate may not enable buttons
This commit is contained in:
parent
18f8d32aa6
commit
81e76b1815
@ -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":
|
||||
|
Loading…
x
Reference in New Issue
Block a user