View Single Post
Old 01-29-2025, 07:46 AM   #5
remizik
Member
remizik began at the beginning.
 
Posts: 13
Karma: 10
Join Date: Jan 2025
Device: kobo clara BW
Quote:
Originally Posted by gereksizuser View Post
I turned off that notification by modifying the main.lua file in the Autowarmth.koplugin folder (make a backup of the file to go back in case of problems). I found and deleted the following lines and it doesn't show up anymore.

local radio_buttons = {

{{

text = _("Show this warning again"),

provider = function() end

}},

{{

text = _("Hide the warning until the next book is opened"),

provider = function()

self.hide_nightmode_warning = true

end,

}},

{{

text = _("Disable AutoWarmth's nightmode control"),

provider = function()

self.control_nightmode = false

G_reader_settings:makeFalse("autowarmth_control_ni ghtmode")

self:scheduleMidnightUpdate(true)

end,

}},

}

UIManager:show(RadioButtonWidget:new{

title_text = _("Night mode changed"),

info_text = _("The AutoWarmth plugin might change it again."),

width_factor = 0.9,

radio_buttons = radio_buttons,

callback = function(radio)

radio.provider()

end,

})
thanks ! gonna try that and report
remizik is offline   Reply With Quote