base_panel: estop set not sensitive instead of hiding

This commit is contained in:
alfrix committed 2022-11-06 13:21:52 -03:00
1 parent 26d10a949b
commit ca7143f776
1 file changed
+2 -3
+2 -3
View File
@@ -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