tweaks on config dialog responsiveness

This commit is contained in:
chrox
2014-01-03 20:41:15 +08:00
parent d471b3eaec
commit 2ffd9bbeef
2 changed files with 2 additions and 2 deletions

View File

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

View File

@@ -135,6 +135,7 @@ function ToggleSwitch:onTapSelect(arg, gev)
end
end
UIManager.repaint_all = true
return true
end
return ToggleSwitch