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)
|
self.buttons[button].set_sensitive(enable)
|
||||||
|
|
||||||
def activate(self):
|
def activate(self):
|
||||||
if self._printer.state == "printing":
|
self.enable_buttons(self._printer.state in ("ready", "paused"))
|
||||||
self.enable_buttons(False)
|
|
||||||
|
|
||||||
def process_update(self, action, data):
|
def process_update(self, action, data):
|
||||||
if action == "notify_gcode_response":
|
if action == "notify_gcode_response":
|
||||||
|
Loading…
x
Reference in New Issue
Block a user