use checked/unchecked for language option

pull/634/head
chrox 10 years ago
parent 0f829390d6
commit 9dce5bad66

@ -18,6 +18,9 @@ end
function Language:genLanguageSubItem(lang, lang_locale) function Language:genLanguageSubItem(lang, lang_locale)
return { return {
text = lang, text = lang,
checked_func = function()
return G_reader_settings:readSetting("language") == lang_locale
end,
callback = function() callback = function()
self:changeLanguage(lang_locale) self:changeLanguage(lang_locale)
end end

Loading…
Cancel
Save