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
reviewable/pr6565/r1
NiLuJe 4 years ago committed by GitHub
parent 8d99523388
commit af3d98aeb7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -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…
Cancel
Save