mirror of https://github.com/lcpz/lain.git
alsabar: failsafe for ALSA configs not starting from init
This commit is contained in:
parent
7e6f1336f2
commit
366ba0c1b7
|
@ -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
2
wiki
|
@ -1 +1 @@
|
|||
Subproject commit 450c0bbf52d9ff9c3f13b634ff666dd352784498
|
||||
Subproject commit 4521f127d306b74538d7cde445796978aa1853cf
|
Loading…
Reference in New Issue