autoturn plugin: fix menu refreshing on check

This commit is contained in:
hius07
2025-06-27 14:04:43 +03:00
committed by GitHub
parent a707d93026
commit 6c4a0fe000

View File

@@ -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)