mirror of
https://github.com/koreader/koreader.git
synced 2025-08-10 00:52:38 +00:00
Bottom Menu: fix contrast has no units (#9392)
This should fix https://github.com/koreader/koreader/pull/9205#issuecomment-1200130686
This commit is contained in:
@@ -163,7 +163,7 @@ function optionsutil.showValues(configurable, option, prefix, document, unit)
|
||||
current, value_current, default)
|
||||
end
|
||||
else
|
||||
if unit ~= "pt" then
|
||||
if unit and unit ~= "pt" then
|
||||
unit = G_reader_settings:nilOrTrue("metric_length") and "mm" or "in"
|
||||
end
|
||||
text = T(_("%1\n%2\nCurrent value: %3%4\nDefault value: %5%6"), name_text, help_text,
|
||||
|
||||
Reference in New Issue
Block a user