From a6d6ba3606ab0199bf5703760ced92c0a2f43759 Mon Sep 17 00:00:00 2001 From: hius07 <62179190+hius07@users.noreply.github.com> Date: Sat, 12 Mar 2022 12:30:26 +0200 Subject: [PATCH] Menu widget: fix no items (#8838) Avoid showing "Page 0 of 0" in non-classic dispaly modes. --- frontend/ui/widget/menu.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/ui/widget/menu.lua b/frontend/ui/widget/menu.lua index c93a0d114..2b9b0c1cb 100644 --- a/frontend/ui/widget/menu.lua +++ b/frontend/ui/widget/menu.lua @@ -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)