covermenu/listmenu: mandatory should not be nil

Caused by #8598
This commit is contained in:
yparitcher
2022-01-05 20:39:38 -05:00
parent 09ef5828cd
commit 71172253b7

View File

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