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();
|
times[identity] = Date.now();
|
||||||
_lastPlayedTime = times;
|
_lastPlayedTime = times;
|
||||||
|
|
||||||
// If current player is not playing, switch to this one
|
// Always switch to the newly playing player
|
||||||
if (player !== p && player?.playbackState !== MprisPlaybackState.Playing) {
|
if (player !== p) {
|
||||||
const idx = players.indexOf(p);
|
const idx = players.indexOf(p);
|
||||||
if (idx >= 0) {
|
if (idx >= 0) {
|
||||||
playerIdx = idx;
|
playerIdx = idx;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue