2016-06-27 15:00:49 +00:00
|
|
|
local InfoMessage = require("ui/widget/infomessage")
|
|
|
|
local UIManager = require("ui/uimanager")
|
|
|
|
local _ = require("gettext")
|
|
|
|
|
|
|
|
return {
|
|
|
|
text = _("Disable double tap"),
|
|
|
|
checked_func = function()
|
|
|
|
return G_reader_settings:readSetting("disable_double_tap") ~= false
|
|
|
|
end,
|
|
|
|
callback = function()
|
2016-06-27 16:43:23 +00:00
|
|
|
local disabled = G_reader_settings:readSetting("disable_double_tap") ~= false
|
2016-06-27 15:00:49 +00:00
|
|
|
G_reader_settings:saveSetting("disable_double_tap", not disabled)
|
|
|
|
UIManager:show(InfoMessage:new{
|
|
|
|
text = _("This will take effect on next restart."),
|
|
|
|
})
|
|
|
|
end,
|
|
|
|
}
|