mirror of
https://github.com/koreader/koreader.git
synced 2025-08-10 00:52:38 +00:00
Allow toggling sleepcover handling from the UI
This commit is contained in:
@@ -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 = {
|
||||
|
||||
Reference in New Issue
Block a user