mirror of
https://github.com/PHIDIAS0303/ExpCluster.git
synced 2025-12-27 11:35:22 +09:00
Fix toolbar buttons not showing on role assign
This commit is contained in:
@@ -494,7 +494,7 @@ function Toolbar._ensure_consistency(player)
|
|||||||
if type(allowed) == "function" then
|
if type(allowed) == "function" then
|
||||||
allowed = allowed(player, element)
|
allowed = allowed(player, element)
|
||||||
end
|
end
|
||||||
element.visible = allowed and element.visible or false
|
element.visible = allowed or false
|
||||||
list[button.name].visible = element.visible
|
list[button.name].visible = element.visible
|
||||||
|
|
||||||
-- Update the toggle state and hide the linked left element if the button is not allowed
|
-- Update the toggle state and hide the linked left element if the button is not allowed
|
||||||
|
|||||||
Reference in New Issue
Block a user