Allow toggling sleepcover handling from the UI

pull/4852/head
NiLuJe 5 years ago
parent 860b4b24a0
commit 783c3fd7dc

@ -138,6 +138,18 @@ if Device:isCervantes() or Device:isKobo() or Device:isSDL() or Device:isSonyPRS
}
end
if Device:isKobo() then
common_settings.sleepcover = {
text = _("Ignore sleepcover events"),
checked_func = function()
return G_reader_settings:isTrue("ignore_power_sleepcover")
end,
callback = function()
G_reader_settings:flipNilOrFalse("ignore_power_sleepcover")
end
}
end
common_settings.night_mode = {
text = _("Night mode"),
checked_func = function() return G_reader_settings:readSetting("night_mode") end,

@ -40,6 +40,7 @@ local order = {
"time",
"battery",
"autosuspend",
"sleepcover",
"mass_storage_settings",
},
navigation = {

@ -60,6 +60,7 @@ local order = {
"time",
"battery",
"autosuspend",
"sleepcover",
"mass_storage_settings",
},
navigation = {

Loading…
Cancel
Save