mirror of
https://github.com/CommunityOx/ox_lib.git
synced 2026-11-17 17:48:36 +00:00
fix(client/radial): don't refresh submenu if unrelated option updates
This commit is contained in:
1 parent
386fc60afd
commit
f130a27680
1 file changed
+5
-5
@@ -84,9 +84,9 @@ local function refreshRadial(menuId)
|
||||
return showRadial(currentRadial.id)
|
||||
end
|
||||
end
|
||||
|
||||
return false
|
||||
end
|
||||
|
||||
return
|
||||
end
|
||||
|
||||
table.wipe(menuHistory)
|
||||
@@ -159,9 +159,9 @@ function lib.removeRadialItem(id)
|
||||
end
|
||||
end
|
||||
|
||||
if isOpen then
|
||||
refreshRadial(menuItem.menu)
|
||||
end
|
||||
if not isOpen then return end
|
||||
|
||||
refreshRadial(id)
|
||||
end
|
||||
|
||||
RegisterNUICallback('radialClick', function(index, cb)
|
||||
|
||||
Reference in new issue
Block a user