Ah yes, each addon needs a unique name. If you want to use a TestAddon temporary folder for one you are working on then you would have to make sure that the old wtf file for that last addon you used it with has been deleted so as to not confuse things. I usually just create a new folder with a new name and rename it later if I needed to.
As to it not seeming to work do a test printout of the values. If the values are stored as "1" and "0" for one reason or another the test of if x then .. will not work if I remember rightly. try doing the following before the if statements.
print(db.MAB.HideMacronames,type(db.MAB.HideMacronames))
if db.MAB.HideMacronames then
print("Hiding")
Btname:Hide()
else
print("Showing")
Btname:Show()
end
|
Hopefully that little test will highlight the problem for you.