Setting default actions in tk-multi-loader2

Is there any way to set the default action executed by the loader then a user double-clicks an item?

I tried reordering the items in the tk-multi-loader2.yml and in the execute_actions method of the relevant software loader class, but neither seemed to have any effect.


1 Like

It’s a good question.

I just tried here, and it did work if I reordered the action_instances list being returned in the generate_actions method. The first action that applies to that PublishedFileType in the list, will be the default.


Thanks, this turns out to have been the answer!
I think there was an update we hadn’t gotten yet that prevented it from working at the time, but all good now.