From 37b28dc5427415f3fc69b1c6a2229301314e59ed Mon Sep 17 00:00:00 2001 From: Ted Gould Date: Fri, 28 Feb 2014 21:27:08 -0600 Subject: Reshuffle the status of the players --- src/sound-menu.vala | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'src/sound-menu.vala') 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); -- cgit v1.2.3