I noticed that in build 2064 the functions getTracklist() and getSelectedTracklist() only return correct results if the main track list has focus when calling the function. If the functions are called before the track list had focus or after it lost focus by clicking the media tree (it's not needed to change the active node, just clicking the white space is enough), null is returned. To reproduce try the following:
- - Open mediamonkey
- Open the chrome dev tools
- Open a node containing songs
- Highlight a few songs
- Run uitools.getTracklist().count and uitools.getTracklist().count in the dev console, both should return the correct total and selected track count, respectively
- While the tracks are still selected, click on whitespace on the media tree on the left
- Run both commands again, an error will be generated because null was returned by both functions