fix: volume slider crash when no audio (#678)
d2febcbd47
forgot the second parameter,
resulting in a crash because it's nil.
This commit is contained in:

committed by
GitHub

parent
73dc2ccf00
commit
f25dfc889e
@@ -201,7 +201,7 @@ function VolumeSlider:render()
|
|||||||
|
|
||||||
-- Disabled stripes for no audio
|
-- Disabled stripes for no audio
|
||||||
if not state.has_audio then
|
if not state.has_audio then
|
||||||
local fg_100_path = create_nudged_path(self.border_size)
|
local fg_100_path = create_nudged_path(self.border_size, state.radius)
|
||||||
local texture_opts = {
|
local texture_opts = {
|
||||||
size = 200, color = 'ffffff', opacity = visibility * 0.1, anchor_x = ax,
|
size = 200, color = 'ffffff', opacity = visibility * 0.1, anchor_x = ax,
|
||||||
clip = '\\clip(' .. fg_100_path.scale .. ',' .. fg_100_path.text .. ')',
|
clip = '\\clip(' .. fg_100_path.scale .. ',' .. fg_100_path.text .. ')',
|
||||||
|
Reference in New Issue
Block a user