volume: Fix overdrive in slider

When setting a maximum value above 1, we currently set a non-existant
maximum_level property instead of the actual 'maximum-value' one.

https://gitlab.gnome.org/GNOME/gnome-shell/merge_requests/670
This commit is contained in:
Florian Müllner 2019-08-07 14:55:49 +02:00 committed by Georges Basile Stavracas Neto
parent 52c2417685
commit 79b54f65b4

View File

@ -139,7 +139,7 @@ var StreamSlider = class {
_amplifySettingsChanged() {
this._allowAmplified = this._soundSettings.get_boolean(ALLOW_AMPLIFIED_VOLUME_KEY);
this._slider.maximum_level = this._allowAmplified
this._slider.maximum_value = this._allowAmplified
? this.getMaxLevel() : 1;
if (this._stream)