Skip to content

Commit 98770a3

Browse files
committed
gmoccapy: fix button states when entering settings from MDI or Auto mode
1 parent 7b6e6f1 commit 98770a3

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

src/emc/usr_intf/gmoccapy/gmoccapy.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2675,7 +2675,8 @@ def on_hal_status_motion_mode_changed(self, widget, new_mode):
26752675
state = True
26762676
if self.stat.task_state != linuxcnc.STATE_ON:
26772677
state = False
2678-
self._sensitize_widgets(widgetlist, state)
2678+
if not self.widgets.tbtn_setup.get_active():
2679+
self._sensitize_widgets(widgetlist, state)
26792680

26802681
def on_hal_status_metric_mode_changed(self, widget, metric_units):
26812682
print("hal status metric mode changed")

0 commit comments

Comments
 (0)