From 5d1e2f83d0ac17998a8ca36d8f1cf08d47c4fea1 Mon Sep 17 00:00:00 2001 From: Kyle Evans Date: Fri, 16 Feb 2018 23:59:50 +0000 Subject: [PATCH] stand/lua: Make CAROUSEL_ENTRY func parameters consistent with name We have no need for the index yet, but add it anyways to keep signatures consistent. --- stand/lua/menu.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/stand/lua/menu.lua b/stand/lua/menu.lua index b9cb485958de..cdd77db9178c 100644 --- a/stand/lua/menu.lua +++ b/stand/lua/menu.lua @@ -213,7 +213,7 @@ menu.welcome = { " (" .. idx .. " of " .. #all_choices .. ")"; end, - func = function(choice, all_choices) + func = function(idx, choice, all_choices) if (#all_choices > 1) then config.reload(choice); end @@ -302,7 +302,7 @@ function menu.run(m) if (#choices > 0) then caridx = (caridx % #choices) + 1; menu.setCarouselIndex(carid, caridx); - sel_entry.func(choices[caridx], + sel_entry.func(caridx, choices[caridx], choices); end elseif (sel_entry.entry_type == core.MENU_SUBMENU) then