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:
parent
923113246e
commit
4b8ff9f6f3
1 changed files with 1 additions and 1 deletions
|
@ -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";
|
||||
|
|
Loading…
Add table
Reference in a new issue