aboutsummaryrefslogtreecommitdiff
path: root/src/volume-warning.vala
diff options
context:
space:
mode:
authorcharles kerr <charlesk@canonical.com>2015-12-20 11:58:36 -0600
committercharles kerr <charlesk@canonical.com>2015-12-20 11:58:36 -0600
commitd48b473907c9b061c5937b32f34952f3d81ea9b2 (patch)
tree375b9dcd807ac5ba55a9d99be601bc99d40d43bd /src/volume-warning.vala
parentbba1bfdff435db14bc18d256b3957c68e0c8cbdd (diff)
downloadayatana-indicator-sound-d48b473907c9b061c5937b32f34952f3d81ea9b2.tar.gz
ayatana-indicator-sound-d48b473907c9b061c5937b32f34952f3d81ea9b2.tar.bz2
ayatana-indicator-sound-d48b473907c9b061c5937b32f34952f3d81ea9b2.zip
fix tyop
Diffstat (limited to 'src/volume-warning.vala')
-rw-r--r--src/volume-warning.vala4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/volume-warning.vala b/src/volume-warning.vala
index f6b2340..b5e1c1b 100644
--- a/src/volume-warning.vala
+++ b/src/volume-warning.vala
@@ -74,7 +74,7 @@ public class VolumeWarning : Object
private string? _objp_role_phone = null;
private uint _pa_volume_sig_count = 0;
- private bool _active_port_headphone = false;
+ private bool _active_port_headphones = false;
private VolumeControl.ActiveOutput _active_output = VolumeControl.ActiveOutput.SPEAKERS;
private IndicatorSound.Options _options;
@@ -557,7 +557,7 @@ public class VolumeWarning : Object
return calculate_high_volume_from_volume(_volume.volume);
}
private bool calculate_high_volume_from_volume(double volume) {
- return _active_port_headphone
+ return _active_port_headphones
&& _options.is_loud(_volume)
&& (stream == "multimedia");
}