From 5d3c04f92806810c55d9d70db1a4eab4b9a65a37 Mon Sep 17 00:00:00 2001 From: virgilsisoe <28490646+sisoe24@users.noreply.github.com> Date: Wed, 4 Oct 2023 13:15:53 -0400 Subject: [PATCH] Fix conditional check for the execute button --- nukeserversocket/controllers/nuke_script_editor.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nukeserversocket/controllers/nuke_script_editor.py b/nukeserversocket/controllers/nuke_script_editor.py index 9ab3b1f8..0275e1ad 100644 --- a/nukeserversocket/controllers/nuke_script_editor.py +++ b/nukeserversocket/controllers/nuke_script_editor.py @@ -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?