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
pull/3495/head
poire-z 7 years ago committed by Frans de Jonge
parent 8360164e24
commit 445926ab1c

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

Loading…
Cancel
Save