Fix: prevent step_min lower than fl_min

pull/2414/head
robert00s 8 years ago committed by Qingping Hou
parent 7e1c0c15c6
commit e0ad600bc7

@ -116,7 +116,13 @@ function FrontLightWidget:setProgress(num, step)
margin = 1,
preselect = true,
width = self.button_width,
callback = function() self:setProgress(i * step, step) end
callback = function()
if i == step_min then
self:setProgress(self.fl_min, step)
else
self:setProgress(i * step, step)
end
end
})
end
else

Loading…
Cancel
Save