mirror of
https://github.com/koreader/koreader.git
synced 2025-08-10 00:52:38 +00:00
tweaks on config dialog responsiveness
This commit is contained in:
@@ -501,8 +501,7 @@ function ConfigDialog:onConfigChoice(option_name, option_value)
|
||||
UIManager:scheduleIn(0.2, function()
|
||||
self.configurable[option_name] = option_value
|
||||
self.ui:handleEvent(Event:new("StartActivityIndicator"))
|
||||
self:closeDialog()
|
||||
UIManager.repaint_all = true
|
||||
UIManager:setDirty(self, "partial")
|
||||
end)
|
||||
return true
|
||||
end
|
||||
|
||||
@@ -135,6 +135,7 @@ function ToggleSwitch:onTapSelect(arg, gev)
|
||||
end
|
||||
end
|
||||
UIManager.repaint_all = true
|
||||
return true
|
||||
end
|
||||
|
||||
return ToggleSwitch
|
||||
|
||||
Reference in New Issue
Block a user