aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/sound-menu.vala6
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);