mirror of
https://github.com/koreader/koreader.git
synced 2025-08-10 00:52:38 +00:00
Fix: prevent step_min lower than fl_min
This commit is contained in:
@@ -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