I have a list selector that allows selection of which plots to be displayed out of a total of 4 plots. Once I click on one of the objects in the selection, this triggers an update of the plots shown.
When I select multiple objects (), it generates confusion as the first click sends off the program to go fetch the data and create the selected plot and then the second click does highlight the clicked item but it does not seem to trigger another call to the function to go and show that plot as well - so some kind of a race condition. This results in the selected items in the list selector to be out of sync with the actual plots shown (2 selected in the file selector but only 1 shown).
So, how can I resolve this? Some elements that come to mind:
a. can I wait to see if there are multiple clicks?
b. can I show an hourglass to indicate the program is doing work?
c. how can I keep the list selector and plots shown in sync?