mirror of
https://github.com/koreader/koreader
synced 2024-10-31 21:20:20 +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:
parent
8d99523388
commit
af3d98aeb7
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user