mirror of
https://github.com/koreader/koreader.git
synced 2025-08-10 00:52:38 +00:00
Add onFrontlightStateChanged event (#2966)
So we do not need the hacky solution in KoboLight plugin anymore. PageFooter can receive and process the event itself.
This commit is contained in:
@@ -668,4 +668,10 @@ function ReaderFooter:onSuspend()
|
||||
end
|
||||
end
|
||||
|
||||
function ReaderFooter:onFrontlightStateChanged()
|
||||
if self.settings.frontlight then
|
||||
self:updateFooter()
|
||||
end
|
||||
end
|
||||
|
||||
return ReaderFooter
|
||||
|
||||
Reference in New Issue
Block a user