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:
christoph-heinrich
2023-10-07 10:46:04 +02:00
committed by GitHub
parent 73dc2ccf00
commit f25dfc889e

View File

@@ -201,7 +201,7 @@ function VolumeSlider:render()
-- Disabled stripes for no audio
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 = {
size = 200, color = 'ffffff', opacity = visibility * 0.1, anchor_x = ax,
clip = '\\clip(' .. fg_100_path.scale .. ',' .. fg_100_path.text .. ')',