mirror of
https://github.com/koreader/koreader.git
synced 2025-08-10 00:52:38 +00:00
Make ConfigDialog updates regional
This commit is contained in:
@@ -58,6 +58,9 @@ end
|
||||
|
||||
function MenuBarItem:invert(invert)
|
||||
self[1].invert = invert
|
||||
UIManager.update_regions_func = function()
|
||||
return {self[1].dimen}
|
||||
end
|
||||
UIManager:setDirty(self.config, "partial")
|
||||
end
|
||||
|
||||
@@ -104,6 +107,9 @@ function OptionTextItem:onTapSelect()
|
||||
self.config:onConfigChoose(self.values, self.name,
|
||||
self.event, self.args,
|
||||
self.events, self.current_item)
|
||||
UIManager.update_regions_func = function()
|
||||
return {self[1].dimen}
|
||||
end
|
||||
UIManager:setDirty(self.config, "partial")
|
||||
return true
|
||||
end
|
||||
@@ -156,6 +162,9 @@ function OptionIconItem:onTapSelect()
|
||||
self.config:onConfigChoose(self.values, self.name,
|
||||
self.event, self.args,
|
||||
self.events, self.current_item)
|
||||
UIManager.update_regions_func = function()
|
||||
return {self[1].dimen}
|
||||
end
|
||||
UIManager:setDirty(self.config, "partial")
|
||||
return true
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user