Glad that’s working better now, but I think there’s still an underlying issue here.
The fix I made restores the correct page selection after a disconnect/reconnect, but the question is why is disconnecting? I think the StreamDeck going blank is the network connection dropping and then reconnecting again.
I’d be interest to see a log from Cantabile’s side when this happens:
Start Cantabile
Go to Tools → Options → Diagnostics and enable Console Logger.
Close Options
Reproduce the “issue” such that the Stream Deck page goes blank for a couple of seconds.
Note if anything odd or different is logged when this happens.
As a side test, it’d be interesting open Cantabile’s WebUI is a separate browser and see if it disconnects/reconnects at the same time the StreamDeck does.
Also, are you running the StreamDeck and Cantabile on the same machine or across network?
I thought maybe the connection was dropping in Cantabile was busy for too long, but your song is taking about 2.3 seconds to load and I did a bunch of tests, even having Cantabile burn CPU flat out for 30 seconds and nothing I did made the connection drop.
Let me research this a little and see if I can figure out how to get more diagnostic info.