InputDialog is broken by #2672 (#2690)

This change also adds a tap_input_func in both TouchMenu and Button.
This commit is contained in:
Hzj_jie
2017-03-28 15:47:18 -07:00
committed by GitHub
parent ea2de9638b
commit ed461c7f30
4 changed files with 28 additions and 14 deletions

View File

@@ -205,14 +205,16 @@ function KOSync:addToMainMenu(menu_items)
},
{
text = _("Custom sync server"),
tap_input = {
title = _("Custom progress sync server address"),
input = self.kosync_custom_server or "https://",
type = "text",
callback = function(input)
self:setCustomServer(input)
end,
},
tap_input_func = function()
return {
title = _("Custom progress sync server address"),
input = self.kosync_custom_server or "https://",
type = "text",
callback = function(input)
self:setCustomServer(input)
end,
}
end,
},
}
}