Skip to content

Commit

Permalink
refactor(client/radial): add isOpen check when adding global items
Browse files Browse the repository at this point in the history
  • Loading branch information
LukeWasTakenn committed Feb 15, 2023
1 parent 6658552 commit b072d0d
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions resource/interface/client/radial.lua
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,13 @@ function lib.addRadialItem(items)
items.resource = invokingResource
menuItems[menuSize + 1] = items
end

if isOpen then
SendNUIMessage({
action = 'refreshItems',
data = menuItems
})
end
end

function lib.removeRadialItem(id)
Expand Down

0 comments on commit b072d0d

Please sign in to comment.