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:
1 parent
bd92d68b7f
commit
d83de47204
3 files changed
+22
-11
No files matched your search
@@ -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