small fix

small fix for sliders throwing errors on creation
This commit is contained in:
Robert Jelic
2024-03-24 04:00:58 +01:00
parent 12e981a0e2
commit 303d0e65ff

View File

@@ -131,6 +131,7 @@ return function(name, basalt)
self:addDraw("slider", function()
local w,h = self:getSize()
local bgCol,fgCol = self:getBackground(), self:getForeground()
local obx, oby = self:getPosition()
if (barType == "horizontal") then
self:addText(index, oby, symbol:rep(symbolSize))
if(symbolBG~=false)then self:addBG(index, 1, tHex[symbolBG]:rep(#symbol*symbolSize)) end