mirror of
https://github.com/koreader/koreader.git
synced 2025-08-10 00:52:38 +00:00
Menu widget: fix no items (#8838)
Avoid showing "Page 0 of 0" in non-classic dispaly modes.
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user