View Single Post
Old 01-29-2025, 06:37 AM   #3
gereksizuser
Enthusiast
gereksizuser began at the beginning.
 
gereksizuser's Avatar
 
Posts: 34
Karma: 10
Join Date: Aug 2021
Device: Kobo Aura Edition 2
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,

})
gereksizuser is offline   Reply With Quote