mirror of
https://github.com/koreader/koreader.git
synced 2025-08-10 00:52:38 +00:00
Always update the table of footer text generators (#6563)
It's only needed by all_at_once, but we were skipping it if nothing or only a single mode was enabled. It lead to desync w/ the settings, or a crash. Fix #6561
This commit is contained in:
@@ -676,9 +676,12 @@ function ReaderFooter:updateFooterTextGenerator()
|
||||
-- function to that one
|
||||
self.genFooterText = footerTextGenerators[1]
|
||||
else
|
||||
self.footerTextGenerators = footerTextGenerators
|
||||
self.genFooterText = self.genAllFooterText
|
||||
end
|
||||
|
||||
-- Even if there's no or a single mode enabled, all_at_once requires this to be set
|
||||
self.footerTextGenerators = footerTextGenerators
|
||||
|
||||
-- notify caller that UI needs update
|
||||
return true
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user