From c6e14ab043d6fd5ba774698cf58a17692478f586 Mon Sep 17 00:00:00 2001 From: charles kerr Date: Sat, 19 Dec 2015 21:15:37 -0600 Subject: bugfix: don't requery notificaton server capabilities each time volume changes --- src/service.vala | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/service.vala b/src/service.vala index ed0fc74..85e03fa 100644 --- a/src/service.vala +++ b/src/service.vala @@ -611,10 +611,12 @@ public class IndicatorSound.Service: Object { private void update_notification () { - 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; + 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; + } var loud = volume_control.high_volume; bool ignore_warning_this_time = this.volume_control.ignore_high_volume; -- cgit v1.2.3