Skip to content

Commit

Permalink
Don't poke the volume prop if it's 0.0 (or null)
Browse files Browse the repository at this point in the history
fixes: #23
  • Loading branch information
JasonLG1979 committed Nov 11, 2019
1 parent b4ee386 commit 336d0fe
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mprisindicatorbutton@JasonLG1979.github.io/dbus.js
Expand Up @@ -1868,7 +1868,7 @@ const MprisProxyHandler = GObject.registerClass({
// which in turn should cause the volume slider to show itself.
// Spotify's Volume prop is broken for example so the volume slider
// remains hidden since it's pointless to show a widget that doesn't do anything...
if (this._playerProxy.Volume !== null) {
if (this._playerProxy.Volume) {
let initialVolume = this._playerProxy.Volume || 0.0;
this._playerProxy.Volume = initialVolume <= 0.0
? 0.1
Expand Down

0 comments on commit 336d0fe

Please sign in to comment.