refactor(web/menu): rename radial menu item key to id

This commit is contained in:
Luke
2023-02-07 13:51:58 +01:00
parent de7cf1ccef
commit 2e74c2d8c9

View File

@@ -39,10 +39,10 @@ function lib.addRadialItem(items)
end
end
function lib.removeRadialItem(key)
function lib.removeRadialItem(id)
for i = 1, #menuItems do
local item = menuItems[i]
if item.key == key then
if item.id == id then
table.remove(menuItems, i)
break
end