Fix: prevent step_min lower than fl_min
This commit is contained in:
1 parent
7e1c0c15c6
commit
e0ad600bc7
1 file changed
+7
-1
@@ -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
|
||||
|
||||
Reference in new issue
Block a user