only auto-switch on player disappearance if it was the selected one

This commit is contained in:
Damocles 2026-04-18 13:17:43 +02:00
parent a032e554d0
commit c52886f061

View file

@ -30,10 +30,11 @@ QtObject {
playerIdx = idx; playerIdx = idx;
return; return;
} }
// Selected player disappeared - switch to best alternative
_switchToBest();
} else if (playerIdx >= players.length) {
playerIdx = 0;
} }
// Selected player disappeared - switch to most recently playing
_switchToBest();
} }
// Watch playback state changes on all players // Watch playback state changes on all players