base_panel: estop set not sensitive instead of hiding
This commit is contained in:
parent
26d10a949b
commit
ca7143f776
@ -316,9 +316,8 @@ class BasePanel(ScreenPanel):
|
||||
|
||||
def show_estop(self, show=True):
|
||||
if show and self.buttons_showing['estop'] is False:
|
||||
self.action_bar.add(self.control['estop'])
|
||||
self.control['estop'].set_sensitive(True)
|
||||
self.buttons_showing['estop'] = True
|
||||
self.control['estop'].show()
|
||||
elif show is False and self.buttons_showing['estop']:
|
||||
self.action_bar.remove(self.control['estop'])
|
||||
self.control['estop'].set_sensitive(False)
|
||||
self.buttons_showing['estop'] = False
|
||||
|
Loading…
x
Reference in New Issue
Block a user