Register Guidelines E-Books Search Today's Posts Mark Forums Read

Go Back   MobileRead Forums > E-Book Software > KOReader

Notices

Reply
 
Thread Tools Search this Thread
Old 01-29-2025, 05:58 AM   #1
remizik
Member
remizik began at the beginning.
 
Posts: 12
Karma: 10
Join Date: Jan 2025
Device: kobo clara BW
Question Night mode changed popup

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,
remizik is offline   Reply With Quote
Old 01-29-2025, 06:33 AM   #2
jonnyl
Zealot
jonnyl knows what is on the back of the AURYN.jonnyl knows what is on the back of the AURYN.jonnyl knows what is on the back of the AURYN.jonnyl knows what is on the back of the AURYN.jonnyl knows what is on the back of the AURYN.jonnyl knows what is on the back of the AURYN.jonnyl knows what is on the back of the AURYN.jonnyl knows what is on the back of the AURYN.jonnyl knows what is on the back of the AURYN.jonnyl knows what is on the back of the AURYN.jonnyl knows what is on the back of the AURYN.
 
Posts: 102
Karma: 9524
Join Date: Jan 2021
Device: Likebook Mars
The third option: "Disable..."
jonnyl is offline   Reply With Quote
Advert
Old 01-29-2025, 06:37 AM   #3
gereksizuser
Enthusiast
gereksizuser began at the beginning.
 
gereksizuser's Avatar
 
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,

})
gereksizuser is offline   Reply With Quote
Old 01-29-2025, 07:26 AM   #4
remizik
Member
remizik began at the beginning.
 
Posts: 12
Karma: 10
Join Date: Jan 2025
Device: kobo clara BW
Quote:
Originally Posted by jonnyl View Post
The third option: "Disable..."
but I don't want to disable the auto function
remizik is offline   Reply With Quote
Old 01-29-2025, 07:46 AM   #5
remizik
Member
remizik began at the beginning.
 
Posts: 12
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
Advert
Old 01-29-2025, 07:50 AM   #6
remizik
Member
remizik began at the beginning.
 
Posts: 12
Karma: 10
Join Date: Jan 2025
Device: kobo clara BW
it works perfectly, thanks a lot ! <3
remizik is offline   Reply With Quote
Old 01-29-2025, 08:12 AM   #7
pazos
cosiñeiro
pazos ought to be getting tired of karma fortunes by now.pazos ought to be getting tired of karma fortunes by now.pazos ought to be getting tired of karma fortunes by now.pazos ought to be getting tired of karma fortunes by now.pazos ought to be getting tired of karma fortunes by now.pazos ought to be getting tired of karma fortunes by now.pazos ought to be getting tired of karma fortunes by now.pazos ought to be getting tired of karma fortunes by now.pazos ought to be getting tired of karma fortunes by now.pazos ought to be getting tired of karma fortunes by now.pazos ought to be getting tired of karma fortunes by now.
 
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.
pazos is offline   Reply With Quote
Old 01-29-2025, 08:22 AM   #8
remizik
Member
remizik began at the beginning.
 
Posts: 12
Karma: 10
Join Date: Jan 2025
Device: kobo clara BW
That's a good point, I'll do that
remizik is offline   Reply With Quote
Old 01-29-2025, 08:33 AM   #9
remizik
Member
remizik began at the beginning.
 
Posts: 12
Karma: 10
Join Date: Jan 2025
Device: kobo clara BW
Github feature request raised !
https://github.com/koreader/koreader/issues/13163
remizik is offline   Reply With Quote
Reply

Tags
message, night mode, popup

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
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


All times are GMT -4. The time now is 08:21 PM.


MobileRead.com is a privately owned, operated and funded community.