From 70642ba040e8933cb655a2ceb34272c0bf7231e3 Mon Sep 17 00:00:00 2001 From: zwim <36999612+zwim@users.noreply.github.com> Date: Sat, 30 Jul 2022 13:46:23 +0200 Subject: [PATCH] Bottom Menu: fix contrast has no units (#9392) This should fix https://github.com/koreader/koreader/pull/9205#issuecomment-1200130686 --- frontend/ui/data/optionsutil.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/ui/data/optionsutil.lua b/frontend/ui/data/optionsutil.lua index ad5dce232..9f8748fb2 100644 --- a/frontend/ui/data/optionsutil.lua +++ b/frontend/ui/data/optionsutil.lua @@ -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,