mirror of
https://github.com/koreader/koreader.git
synced 2025-08-10 00:52:38 +00:00
Fix live refresh when changing pdf contrast
nextTick somehow prevented a full refresh of the screen scheduleIn, as used by other widgets, makes that ok
This commit is contained in:
@@ -437,7 +437,7 @@ function ConfigOption:init()
|
||||
num_buttons = #self.options[c].values,
|
||||
position = self.options[c].default_pos,
|
||||
callback = function(arg)
|
||||
UIManager:nextTick(function()
|
||||
UIManager:scheduleIn(0.05, function()
|
||||
self.config:onConfigChoice(self.options[c].name, self.options[c].values[arg])
|
||||
self.config:onConfigEvent(self.options[c].event, self.options[c].args[arg])
|
||||
UIManager:setDirty("all")
|
||||
|
||||
Reference in New Issue
Block a user