Menu widget: fix no items (#8838)

Avoid showing "Page 0 of 0" in non-classic dispaly modes.
This commit is contained in:
hius07
2022-03-12 12:30:26 +02:00
committed by GitHub
parent 7b4d6fd205
commit a6d6ba3606

View File

@@ -987,7 +987,7 @@ function Menu:onCloseWidget()
end
function Menu:updatePageInfo(select_number)
if self.item_group[1] then
if #self.item_table > 0 then
if Device:hasDPad() then
-- reset focus manager accordingly
self:moveFocusTo(1, select_number)