~ci-train-bot/indicator-sound/indicator-sound-ubuntu-zesty-2275

« back to all changes in this revision

Viewing changes to src/service.vala

adding lp:~xavi-garcia-mena/indicator-sound/re-add-integration-tests

Show diffs side-by-side

added added

removed removed

Lines of Context:
40
40
                warn_notification.set_hint ("x-canonical-non-shaped-icon", "true");
41
41
                warn_notification.set_hint ("x-canonical-snap-decisions", "true");
42
42
                warn_notification.set_hint ("x-canonical-private-affirmative-tint", "true");
43
 
                warn_notification.closed.connect((n) => { n.clear_actions(); });
 
43
                warn_notification.closed.connect((n) => { n.clear_actions(); waiting_user_approve_warn=false; });
44
44
                BusWatcher.watch_namespace (GLib.BusType.SESSION,
45
45
                                            "org.freedesktop.Notifications",
46
46
                                            () => { debug("Notifications name appeared"); },
609
609
                var warn = loud
610
610
                        && this.notify_server_supports_actions
611
611
                        && !this.volume_control.high_volume_approved;
612
 
 
 
612
                if (waiting_user_approve_warn && volume_control.below_warning_volume) {
 
613
                        volume_control.set_warning_volume();
 
614
                        close_notification(warn_notification);
 
615
                } 
613
616
                if (warn) {
614
617
                        close_notification(info_notification);
615
618
                        if (_pre_warn_volume == null) {