Draft: Fix regression in sync_snap_toolbar_button function

This commit is contained in:
marioalexis
2021-03-14 17:14:58 -03:00
parent 2bef8dbb40
commit 4bbd75686c

View File

@@ -70,9 +70,9 @@ def sync_snap_toolbar_button(button, status):
if action.objectName() == button:
action.setChecked(status)
if action.isChecked():
action.setToolTip(a.toolTip().replace("OFF","ON"))
action.setToolTip(action.toolTip().replace("OFF","ON"))
else:
action.setToolTip(a.toolTip().replace("ON","OFF"))
action.setToolTip(action.toolTip().replace("ON","OFF"))
return