diff options
author | Ted Gould <ted@gould.cx> | 2014-02-28 21:27:08 -0600 |
---|---|---|
committer | Ted Gould <ted@gould.cx> | 2014-02-28 21:27:08 -0600 |
commit | 37b28dc5427415f3fc69b1c6a2229301314e59ed (patch) | |
tree | 83855920b4e282ff34e34fefcfb4f6a76f5c32a4 /src/sound-menu.vala | |
parent | d67a230f9271bdc43441868cfa0012309a7c8967 (diff) | |
download | ayatana-indicator-sound-37b28dc5427415f3fc69b1c6a2229301314e59ed.tar.gz ayatana-indicator-sound-37b28dc5427415f3fc69b1c6a2229301314e59ed.tar.bz2 ayatana-indicator-sound-37b28dc5427415f3fc69b1c6a2229301314e59ed.zip |
Reshuffle the status of the players
Diffstat (limited to 'src/sound-menu.vala')
-rw-r--r-- | src/sound-menu.vala | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/sound-menu.vala b/src/sound-menu.vala index edb72d1..6d36731 100644 --- a/src/sound-menu.vala +++ b/src/sound-menu.vala @@ -95,11 +95,13 @@ class SoundMenu: Object this.update_playlists (player); var handler_id = player.notify["is-running"].connect ( () => { - if (player.is_running || !this.hide_inactive) + if (player.is_running) if (this.find_player_section(player) == -1) this.insert_player_section (player); else - this.remove_player_section (player); + if (this.hide_inactive) + this.remove_player_section (player); + this.update_playlists (player); }); this.notify_handlers.insert (player, handler_id); |