Button COMP causes ui.choosefile() dialog to open twice

When I attach a null CHOP to a button COMP, and select the v1 channel from it with a reference on a pulse parameter of any comp, it bugs the behavior of a parameter execute DAT when this DAT calls ui.choosefile(). It opens the file save dialog twice.

I have tested with making the button toggle up/down (keeps opening twice), triggering the same script from other chop data (opens once as expected), triggering a chop execute dat directly from the output of the button (opens once also)

ui savefile problem.toe (4.1 KB)

System info:
Win 10
TD ver. 2021.15020

Hey @incognite

Thanks for the report.

I had a look and can reproduce it on my end.

I logged an issue for a developer to look into it.

Best,
Michel