![]() |
#1 |
Member
![]() Posts: 12
Karma: 10
Join Date: Jan 2025
Device: kobo clara BW
|
![]()
Hi,
is there a way to disable this popup ? ![]() Every time I start a new book and enable Night mode, it comes up. I wish there was another choice like "Hide the warning forever" ![]() But maybe I missed an option somewhere else ? Thanks, |
![]() |
![]() |
![]() |
#2 |
Zealot
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 102
Karma: 9524
Join Date: Jan 2021
Device: Likebook Mars
|
The third option: "Disable..."
|
![]() |
![]() |
Advert | |
|
![]() |
#3 |
Enthusiast
![]() Posts: 30
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, }) |
![]() |
![]() |
![]() |
#4 |
Member
![]() Posts: 12
Karma: 10
Join Date: Jan 2025
Device: kobo clara BW
|
|
![]() |
![]() |
![]() |
#5 | |
Member
![]() Posts: 12
Karma: 10
Join Date: Jan 2025
Device: kobo clara BW
|
Quote:
|
|
![]() |
![]() |
Advert | |
|
![]() |
#6 |
Member
![]() Posts: 12
Karma: 10
Join Date: Jan 2025
Device: kobo clara BW
|
it works perfectly, thanks a lot ! <3
|
![]() |
![]() |
![]() |
#7 |
cosiñeiro
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,373
Karma: 2200075
Join Date: Apr 2014
Device: BQ Cervantes 4
|
Modifying a plugin directly is not recommended. Your changes will be lost after each update.
Better to raise a github issue to gather some feedback. Either some new option is added to address your usercase or, at least, an userpatch is provided, so you can get the results you want without having to reimplement it on each update. |
![]() |
![]() |
![]() |
#8 |
Member
![]() Posts: 12
Karma: 10
Join Date: Jan 2025
Device: kobo clara BW
|
That's a good point, I'll do that
![]() |
![]() |
![]() |
![]() |
#9 |
Member
![]() Posts: 12
Karma: 10
Join Date: Jan 2025
Device: kobo clara BW
|
Github feature request raised !
https://github.com/koreader/koreader/issues/13163 |
![]() |
![]() |
![]() |
Tags |
message, night mode, popup |
Thread Tools | Search this Thread |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Night mode reading preference vs normal mode | ProDigit | General Discussions | 19 | 11-08-2020 04:33 AM |
Calibre 4.10 night mode/dark mode | likeaghost | Calibre | 11 | 05-03-2020 05:43 PM |
How to take over changed metadata in view mode? | chaot | Conversion | 9 | 06-18-2015 04:44 AM |
Odyssey Anyone using Night-Mode? | DuckieTigger | Bookeen | 2 | 01-28-2012 12:13 PM |
Is there a night mode? | zeroh | Nook Color & Nook Tablet | 5 | 12-04-2010 10:24 AM |