covermenu/listmenu: mandatory should not be nil

Caused by #8598
reviewable/pr8636/r1
yparitcher 2 years ago
parent 09ef5828cd
commit 71172253b7

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

Loading…
Cancel
Save