sound: Include zero volume in lowest volume icon

If changed externally at least, the volume can be zero while unmuted.
Just use the lowest volume icon in that case by including it in the
range.

It does not make sense to use the muted icon, as we are not technically
muted and the toggle button is not active.
This commit is contained in:
Benjamin Berg 2021-02-20 19:43:52 +01:00 committed by Georges Basile Stavracas Neto
parent 923113246e
commit 4b8ff9f6f3

View file

@ -53,7 +53,7 @@ update_volume_icon (CcVolumeSlider *self)
if (gtk_toggle_button_get_active (self->mute_button))
icon_name = "audio-volume-muted-symbolic";
else if (fraction > 0.0 && fraction < 30.0)
else if (fraction < 30.0)
icon_name = "audio-volume-low-symbolic";
else if (fraction > 30.0 && fraction < 70.0)
icon_name = "audio-volume-medium-symbolic";