mirror of
https://github.com/koreader/koreader.git
synced 2025-08-10 00:52:38 +00:00
Embedded fonts toggle: disabled if no embedded font
Have the enabled/disabled state of the toggle show the presence or not of embedded fonts in the current book. Also show the names of the embedded fonts in the help_text InfoMessage.
This commit is contained in:
@@ -101,7 +101,10 @@ function optionsutil.showValues(configurable, option, prefix, document)
|
||||
end
|
||||
if option.help_text_func then
|
||||
-- Allow for concatenating a dynamic help_text_func to a static help_text
|
||||
help_text = T("%1\n%2\n", help_text, option.help_text_func(configurable, document))
|
||||
local more_text = option.help_text_func(configurable, document)
|
||||
if more_text and more_text ~= "" then
|
||||
help_text = T("%1\n%2\n", help_text, more_text)
|
||||
end
|
||||
end
|
||||
local text
|
||||
local name_text = option.name_text_func
|
||||
|
||||
Reference in New Issue
Block a user