Fix: prevent step_min lower than fl_min

This commit is contained in:
robert00s authored and Qingping Hou committed 2016-12-07 00:36:13 -08:00
1 parent 7e1c0c15c6
commit e0ad600bc7
1 file changed
+7 -1
+7 -1
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