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:
poire-z
2017-11-17 13:44:13 +01:00
committed by Frans de Jonge
parent 8360164e24
commit 445926ab1c

View File

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