Skip to content

Commit

Permalink
Fix conditional check for the execute button
Browse files Browse the repository at this point in the history
  • Loading branch information
sisoe24 committed Oct 4, 2023
1 parent 8d91537 commit 5d3c04f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion nukeserversocket/controllers/nuke_script_editor.py
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,7 @@ def _find_run_button(self): # type: (str) -> QPushButton | None
"""
# TODO: if fail tooltip search for list position
for button in self._find_script_editor().findChildren(QPushButton):
if button.toolTip() == 'Run the current script':
if button.toolTip().startswith('Run the current script'):
return button

# XXX: can the button not be found?
Expand Down

0 comments on commit 5d3c04f

Please sign in to comment.