Merge branch 'explosivegaming:main' into aperx

This commit is contained in:
2025-03-07 23:45:09 +09:00
committed by GitHub
6 changed files with 6 additions and 7 deletions

View File

@@ -494,7 +494,7 @@ function Toolbar._ensure_consistency(player)
if type(allowed) == "function" then
allowed = allowed(player, element)
end
element.visible = allowed and element.visible or false
element.visible = allowed or false
list[button.name].visible = element.visible
-- Update the toggle state and hide the linked left element if the button is not allowed