always switch to newly playing mpris session
This commit is contained in:
parent
c52886f061
commit
381ceaa642
1 changed files with 2 additions and 2 deletions
|
|
@ -89,8 +89,8 @@ QtObject {
|
|||
times[identity] = Date.now();
|
||||
_lastPlayedTime = times;
|
||||
|
||||
// If current player is not playing, switch to this one
|
||||
if (player !== p && player?.playbackState !== MprisPlaybackState.Playing) {
|
||||
// Always switch to the newly playing player
|
||||
if (player !== p) {
|
||||
const idx = players.indexOf(p);
|
||||
if (idx >= 0) {
|
||||
playerIdx = idx;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue