aboutsummaryrefslogtreecommitdiff
path: root/src/service.vala
diff options
context:
space:
mode:
authorTed Gould <ted@gould.cx>2014-11-05 10:37:49 -0600
committerTed Gould <ted@gould.cx>2014-11-05 10:37:49 -0600
commit6e525389ca3139b6063f1449d79c4cf688e28f1d (patch)
tree4ae9d6c64f7927d742c719e0ae5433e569c5c251 /src/service.vala
parent3c350eabc0e9eef095933819fc168d8183630eb5 (diff)
parent8cfba863c2ce74c326cb31f13f14a1de801e69f2 (diff)
downloadayatana-indicator-sound-6e525389ca3139b6063f1449d79c4cf688e28f1d.tar.gz
ayatana-indicator-sound-6e525389ca3139b6063f1449d79c4cf688e28f1d.tar.bz2
ayatana-indicator-sound-6e525389ca3139b6063f1449d79c4cf688e28f1d.zip
service.vala: don't call set_volume unnecessarily (LP: #1381871)
Diffstat (limited to 'src/service.vala')
-rw-r--r--src/service.vala3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/service.vala b/src/service.vala
index 7daa6db..fd0c08d 100644
--- a/src/service.vala
+++ b/src/service.vala
@@ -131,6 +131,9 @@ public class IndicatorSound.Service: Object {
}
set {
+ if (this.allow_amplified_volume == value)
+ return;
+
if (value) {
/* from pulse/volume.h: #define PA_VOLUME_UI_MAX (pa_sw_volume_from_dB(+11.0)) */
this.max_volume = (double)PulseAudio.Volume.sw_from_dB(11.0) / PulseAudio.Volume.NORM;