2
0
mirror of https://github.com/koreader/koreader synced 2024-11-13 19:11:25 +00:00
koreader/frontend/ui/elements/screen_eink_opt_menu_table.lua

12 lines
303 B
Lua
Raw Normal View History

local _ = require("gettext")
local Screen = require("device").screen
return {
text = _("E-ink optimization"),
checked_func = function() return Screen.eink end,
callback = function()
Screen.eink = not Screen.eink
G_reader_settings:saveSetting("eink", Screen.eink)
end,
}