Fix: prevent step_min lower than fl_min

This commit is contained in:
robert00s
2016-12-06 08:15:19 +01:00
committed by Qingping Hou
parent 7e1c0c15c6
commit e0ad600bc7

View File

@@ -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