aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-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");
}