Skip to content

Commit

Permalink
fix: always update mpris on song change
Browse files Browse the repository at this point in the history
The song can still be changed manually by the user when 'Repeat Current
Song' is enabled, leading to mpris de-syncing. The `notify::current`
signal is not emitted on a song repeating anyway.
  • Loading branch information
DaPigGuy committed Aug 3, 2024
1 parent 87d484b commit 653f4c2
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions src/mpris.ts
Original file line number Diff line number Diff line change
Expand Up @@ -380,15 +380,6 @@ export class MPRIS extends DBusInterface {
}

private _on_current_song_changed() {
// In repeat song mode, no metadata has changed if the player was
// already started
if (this.player.queue.repeat === RepeatMode.ONE) {
this._seeked(0);
if (this.player.queue.position > 0) {
return;
}
}

// IDK
this._on_player_model_changed(this.player.queue.list, 0, 0, 0);
}
Expand Down

0 comments on commit 653f4c2

Please sign in to comment.