Hi, I'm trying to listen for any change the user makes to their selection in either the now playing list or the main tracklist, but I'm having trouble.
From
this forum post I figured out that I can use app.listen like this...
Code: Select all
app.listen( uitools.getSelectedTracklist(), 'change', ()=>{
console.log("selection changed (from uitools)");
});
But I find that it fires whenever I change the selection in either the now playing list or main list (good so far), but only until I change nodes. Then it just stops.
Am I doing something wrong? Is there a better way to achieve this?