fix(pulseaudio): allow to scroll to 0

pull/331/head
Alex 2019-05-21 09:29:39 +02:00
parent 12a251c3a4
commit cf7663153d
1 changed files with 1 additions and 1 deletions

View File

@ -108,7 +108,7 @@ bool waybar::modules::Pulseaudio::handleVolume(GdkEventScroll *e) {
pa_cvolume_inc(&pa_volume, change); pa_cvolume_inc(&pa_volume, change);
} }
} else { } else {
if (volume_ - 1 > 0) { if (volume_ - 1 >= 0) {
pa_cvolume_dec(&pa_volume, change); pa_cvolume_dec(&pa_volume, change);
} }
} }