Menu/KVP: Make sure icons are hidden when no items are to be shown.

Fix #7394
reviewable/pr7398/r1
NiLuJe 3 years ago
parent 681c00ecac
commit 08648d8870

@ -644,6 +644,11 @@ function KeyValuePage:_populateItems()
else
self.page_info_text:setText(_("No items"))
self.page_info_text:disableWithoutDimming()
self.page_info_left_chev:hide()
self.page_info_right_chev:hide()
self.page_info_first_chev:hide()
self.page_info_last_chev:hide()
end
UIManager:setDirty(self, function()

@ -993,6 +993,12 @@ function Menu:updatePageInfo(select_number)
else
self.page_info_text:setText(_("No items"))
self.page_info_text:disableWithoutDimming()
self.page_info_left_chev:hide()
self.page_info_right_chev:hide()
self.page_info_first_chev:hide()
self.page_info_last_chev:hide()
self.page_return_arrow:showHide(self.onReturn ~= nil)
end
end

Loading…
Cancel
Save