mirror of
https://github.com/koreader/koreader.git
synced 2025-08-10 00:52:38 +00:00
autoturn plugin: fix menu refreshing on check
This commit is contained in:
@@ -131,6 +131,7 @@ function AutoTurn:addToMainMenu(menu_items)
|
||||
return self:_enabled() and T(_("Autoturn: %1"), time_string) or _("Autoturn")
|
||||
end,
|
||||
checked_func = function() return self:_enabled() end,
|
||||
on_check_updated_in_callback = true,
|
||||
callback = function(menu)
|
||||
local DateTimeWidget = require("ui/widget/datetimewidget")
|
||||
local autoturn_seconds = G_reader_settings:readSetting("autoturn_timeout_seconds", 30)
|
||||
|
||||
Reference in New Issue
Block a user