[Updated 2024-01-03 to include the problem with transform().]
In Mac LR 13.1, plugins cannot set or change the selected items in a simple_list() control; when they try, the operation() and transform() callbacks of the binding also stop working.
This worked up through LR 13.0.1, and it continues to work in Windows LR 13.1. The bug impacts several of my plugins, including the popular Any Filter.
To reproduce:
1. Download and install this plugin:
https://www.dropbox.com/scl/fi/ti1rgaf4v43arshtncuus/simple_list-bug.lrdevplugin.2024.01.03.zip?rlke...
2. Do File > Plug-in Extras > simple_list-bug.
3. Observe that no item in the simple_list() control is selected (incorrect, "2" should be selected):
4. Click item "2" and observe that the operation() and transform() callbacks of the binding are invoked:
5. Click the Set Selection button, which tries to set the selection of the simple_list() to "1", and observe that the selection remains unchanged.
6. Click items "1" and "2" -- observe that the operation() and transform() callbacks are no longer invoked.
7. Run the plugin in LR 13.0.1 and observe that item "2" is selected (the correct result):
8. Click the Set Selection button and observe that the selection correctly changes to "1".
9. Click items "1" and "2" and observe that the operation() and transform() callbacks are correctly invoked.