• Jean Felder's avatar
    mpris: Correctly listen to player model changes · 9e7cc824
    Jean Felder authored
    This is a follow up and fix of commit
    a65f4439.
    
    The MPRIS tracklist (and some other properties) need to be updated in
    two cases:
    - the current song changes
    - the player playlist changes (some songs are added or removed)
    
    Commit a65f4439 added the possibility
    to handle the latter case.
    
    However, when a new player playlist is loaded (the user clicks on an
    other album or artist for example), the player playlist is completely
    refreshed. In that corner case, the MPRIS tracklist cannot be updated
    because the player position has not been updated yet. The MPRIS
    tracklist (and the other properties) will be correctly updated once a
    new song is playing (by the _on_current_song_changed method).
    9e7cc824
Name
Last commit
Last update
data Loading commit data...
gnomemusic Loading commit data...
help Loading commit data...
po Loading commit data...
subprojects Loading commit data...
.gitignore Loading commit data...
.gitlab-ci.yml Loading commit data...
.gitmodules Loading commit data...
LICENSE Loading commit data...
NEWS Loading commit data...
README.md Loading commit data...
gnome-music.doap Loading commit data...
gnome-music.in Loading commit data...
meson.build Loading commit data...
meson_options.txt Loading commit data...
meson_post_conf.py Loading commit data...
meson_post_install.py Loading commit data...
org.gnome.Music.json Loading commit data...