[Draft] Return once the button is found

This commit is contained in:
Chris Hennes
2021-02-28 21:48:31 -06:00
parent 58a6f05956
commit d78017f2e0

View File

@@ -73,6 +73,7 @@ def sync_snap_toolbar_button(button, status):
action.setToolTip(a.toolTip().replace("OFF","ON"))
else:
action.setToolTip(a.toolTip().replace("ON","OFF"))
return
def sync_snap_statusbar_button(button, status):
@@ -96,6 +97,7 @@ def sync_snap_statusbar_button(button, status):
for a in actions:
if a.objectName() == button:
a.setChecked(status)
return
# SNAP GUI TOOLS ------------------------------------------------------------