Bottom Menu: fix contrast has no units (#9392)

This should fix https://github.com/koreader/koreader/pull/9205#issuecomment-1200130686
reviewable/pr9394/r1
zwim 2 years ago committed by GitHub
parent ed34a3078e
commit 70642ba040
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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

Loading…
Cancel
Save