alsabar: failsafe for ALSA configs not starting from init

This commit is contained in:
copycat-killer 2016-09-29 10:48:27 +02:00
parent 7e6f1336f2
commit 366ba0c1b7
2 changed files with 2 additions and 2 deletions

View File

@ -135,7 +135,7 @@ local function worker(args)
if (volu and tonumber(volu) ~= alsabar._current_level) or (mute and string.match(mute, "on") ~= alsabar._muted)
then
alsabar._current_level = tonumber(volu)
alsabar._current_level = tonumber(volu) or alsabar._current_level
alsabar.bar:set_value(alsabar._current_level / 100)
if not mute and tonumber(volu) == 0 or mute == "off"
then

2
wiki

@ -1 +1 @@
Subproject commit 450c0bbf52d9ff9c3f13b634ff666dd352784498
Subproject commit 4521f127d306b74538d7cde445796978aa1853cf