From c1c9654f10b05e862910e66b6628ea3c208ef842 Mon Sep 17 00:00:00 2001 From: hius07 <62179190+hius07@users.noreply.github.com> Date: Fri, 27 Jun 2025 14:05:18 +0300 Subject: [PATCH] autowarmth plugin: fix menu refreshing on check --- plugins/autowarmth.koplugin/main.lua | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/plugins/autowarmth.koplugin/main.lua b/plugins/autowarmth.koplugin/main.lua index 4fa87fdb7..42284a7a5 100644 --- a/plugins/autowarmth.koplugin/main.lua +++ b/plugins/autowarmth.koplugin/main.lua @@ -608,6 +608,7 @@ function AutoWarmth:getSubMenuItems() return not self.easy_mode end, help_text = _("In the expert mode, different types of twilight can be used in addition to civil twilight."), + on_check_updated_in_callback = true, callback = function(touchmenu_instance) self.easy_mode = not self.easy_mode G_reader_settings:saveSetting("autowarmth_easy_mode", self.easy_mode) @@ -662,6 +663,7 @@ function AutoWarmth:getFlOffDuringDayMenu() return _("Frontlight off during day") end end, + on_check_updated_in_callback = true, callback = function(touchmenu_instance) if self.easy_mode then self.fl_off_during_day = not self.fl_off_during_day @@ -889,6 +891,7 @@ function AutoWarmth:getScheduleMenu() checked_func = function() return self.scheduler_times[num] ~= nil end, + on_check_updated_in_callback = true, callback = function(touchmenu_instance) local hh = 12 local mm = 0 @@ -1112,6 +1115,7 @@ function AutoWarmth:getWarmthMenu() }) end end, + on_check_updated_in_callback = true, callback = function(touchmenu_instance) if Device:hasNaturalLight() then if self.control_warmth and self.control_nightmode then