From 0d6e0d7dc3c4213cb6fc265b427b8d871fc45bf4 Mon Sep 17 00:00:00 2001 From: Ted Gould Date: Sun, 2 Mar 2014 20:36:40 -0600 Subject: Make enabled work the same was when the properties get updated --- src/service.vala | 1 + 1 file changed, 1 insertion(+) (limited to 'src') diff --git a/src/service.vala b/src/service.vala index 490e242..a35d465 100644 --- a/src/service.vala +++ b/src/service.vala @@ -366,6 +366,7 @@ public class IndicatorSound.Service: Object { this.menus.@foreach ( (profile, menu) => menu.add_player (player)); SimpleAction action = new SimpleAction.stateful (player.id, null, this.action_state_for_player (player)); + action.set_enabled (player.can_raise); action.activate.connect ( () => { player.activate (); }); this.actions.add_action (action); -- cgit v1.2.3