From 80dd6f2e9697d8b6b462157c548d986586310838 Mon Sep 17 00:00:00 2001 From: Xavi Garcia Mena Date: Fri, 30 Oct 2015 14:24:14 +0100 Subject: 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 --- src/service.vala | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) (limited to 'src/service.vala') 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 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 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 -- cgit v1.2.3