2
0
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:
NiLuJe 2020-08-25 16:47:32 +02:00 committed by GitHub
parent 8d99523388
commit af3d98aeb7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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