From 71172253b752fe518cda9ce1f5feb6216fe0e9f1 Mon Sep 17 00:00:00 2001 From: yparitcher Date: Wed, 5 Jan 2022 20:39:38 -0500 Subject: [PATCH] covermenu/listmenu: mandatory should not be nil Caused by #8598 --- plugins/coverbrowser.koplugin/listmenu.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/coverbrowser.koplugin/listmenu.lua b/plugins/coverbrowser.koplugin/listmenu.lua index 8aea21e0b..4f4162596 100644 --- a/plugins/coverbrowser.koplugin/listmenu.lua +++ b/plugins/coverbrowser.koplugin/listmenu.lua @@ -229,7 +229,7 @@ function ListMenuItem:update() self.is_directory = true -- nb items on the right, directory name on the left local wright = TextWidget:new{ - text = self.mandatory_func and self.mandatory_func() or self.mandatory, + text = self.mandatory_func and self.mandatory_func() or (self.mandatory and self.mandatory or ""), face = Font:getFace("infont", _fontSize(14, 18)), } local pad_width = Screen:scaleBySize(10) -- on the left, in between, and on the right