if InCombatLockdown() then
print("Cannot change the button lock during combat.")
return
end
Bartender4.db.profile.buttonlock = not Bartender4.db.profile.buttonlock
Bartender4.Bar:ForAll("ForAll", "SetAttribute", "buttonlock", Bartender4.db.profile.buttonlock)