aboutsummaryrefslogtreecommitdiff
path: root/src/service.vala
diff options
context:
space:
mode:
authorTed Gould <ted@gould.cx>2014-03-02 20:36:40 -0600
committerTed Gould <ted@gould.cx>2014-03-02 20:36:40 -0600
commit0d6e0d7dc3c4213cb6fc265b427b8d871fc45bf4 (patch)
tree94805d4037812ba763a4a2bc0f46408b161a1e62 /src/service.vala
parentbb6dabf8052f9f9f5ed57a0a73ab4be29d9da020 (diff)
downloadayatana-indicator-sound-0d6e0d7dc3c4213cb6fc265b427b8d871fc45bf4.tar.gz
ayatana-indicator-sound-0d6e0d7dc3c4213cb6fc265b427b8d871fc45bf4.tar.bz2
ayatana-indicator-sound-0d6e0d7dc3c4213cb6fc265b427b8d871fc45bf4.zip
Make enabled work the same was when the properties get updated
Diffstat (limited to 'src/service.vala')
-rw-r--r--src/service.vala1
1 files changed, 1 insertions, 0 deletions
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);