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:
zwim
2022-07-30 13:46:23 +02:00
committed by GitHub
parent ed34a3078e
commit 70642ba040

View File

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