Floating Toolbar Menu Buttons Not Refreshing

I added the following to my Floating Toolbar Button, but the evaluation only appears to occur when the toolbar is instantiated.

What I need is real-time top level buttons to enable or disable based on the criteria.

Is this possible?

@enableif:= running("Notepad.exe")

It's not going to check if notepad.exe is running non-stop. That would cause performance issues.

You can use @toggle:update (or similar via the scripting API) to make toolbar buttons refresh themselves in addition to the times they do it automatically, but there's no way to know when something outside of Opus launches notepad.exe, for example.

What are you actually trying to do?

I want a few menu buttons on my toolbar to deactivate when a program (e.g. notepad.exe) exits and re-enable when the same program is running.
Is there a way to refresh the toolbar from DopusRT? Then i could use Autohotkey to monitor for the running program, and a DopusRT command to refresh this particular toolbar.

I could not find Toolbar argument that refreshes the toolbar without disabling and re-enabling it.

Perhaps a future version could Refresh the toolbar when UPDATE is invoked, or alternatively, a separate REFRESH argument could be created.