menu: idx

reviewable/pr11534/r2
hius07 2 months ago committed by GitHub
parent 4d4559ea0b
commit 144265e0a3
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -1065,7 +1065,7 @@ function Menu:updateItems(select_number)
-- calculate index in item_table
local i = (self.page - 1) * self.perpage + c
if i <= #self.item_table then
self.item_table[i].ind = i -- index is valid only for items that have been displayed
self.item_table[i].idx = i -- index is valid only for items that have been displayed
local item_shortcut = nil
local shortcut_style = "square"
if self.is_enable_shortcut then

Loading…
Cancel
Save