aboutsummaryrefslogtreecommitdiff
path: root/src/service.vala
diff options
context:
space:
mode:
authorXavi Garcia Mena <xavi.garcia.mena@canonical.com>2015-10-30 14:24:14 +0100
committerXavi Garcia Mena <xavi.garcia.mena@canonical.com>2015-10-30 14:24:14 +0100
commit80dd6f2e9697d8b6b462157c548d986586310838 (patch)
tree23f0f3275848215bbe22b1661dc09809f5959705 /src/service.vala
parent30fb740a1f2c9922ff2326deda649fa3b164b260 (diff)
downloadayatana-indicator-sound-80dd6f2e9697d8b6b462157c548d986586310838.tar.gz
ayatana-indicator-sound-80dd6f2e9697d8b6b462157c548d986586310838.tar.bz2
ayatana-indicator-sound-80dd6f2e9697d8b6b462157c548d986586310838.zip
Checking capabilites in every notification. This is a workaround as it was observed that when using headphones the capabilities are not correct when we check for the first time
Diffstat (limited to 'src/service.vala')
-rw-r--r--src/service.vala10
1 files changed, 4 insertions, 6 deletions
diff --git a/src/service.vala b/src/service.vala
index 74c00fc..12e2ac2 100644
--- a/src/service.vala
+++ b/src/service.vala
@@ -600,12 +600,10 @@ public class IndicatorSound.Service: Object {
private void update_notification () {
- if (!notify_server_caps_checked) {
- List<string> caps = Notify.get_server_caps ();
- notify_server_supports_actions = caps.find_custom ("actions", strcmp) != null;
- notify_server_supports_sync = caps.find_custom ("x-canonical-private-synchronous", strcmp) != null;
- notify_server_caps_checked = true;
- }
+ List<string> caps = Notify.get_server_caps ();
+ notify_server_supports_actions = caps.find_custom ("actions", strcmp) != null;
+ notify_server_supports_sync = caps.find_custom ("x-canonical-private-synchronous", strcmp) != null;
+ notify_server_caps_checked = true;
var loud = volume_control.high_volume;
var warn = loud