Don't set LDB objects twice
Adrian L Lange [09-12-09 - 22:52]
Don't set LDB objects twice
diff --git a/Broker_Equipment.lua b/Broker_Equipment.lua
index a3be66c..5ea2d2e 100644
--- a/Broker_Equipment.lua
+++ b/Broker_Equipment.lua
@@ -45,8 +45,6 @@ addon:SetScript('OnEvent', function(self, event, ...) self[event](self, event, .
local broker = LibStub('LibDataBroker-1.1'):NewDataObject('Broker_Equipment', {
type = 'data source',
- text = L.NOSET,
- icon = [=[Interface\PaperDollInfoFrame\UI-EquipmentManager-Toggle]=],
iconCoords = {0.065, 0.935, 0.065, 0.935}
})
@@ -177,7 +175,7 @@ end
function addon:ADDON_LOADED(event, addon)
if(addon ~= 'Broker_Equipment') then return end
- Broker_EquipmentDB = Broker_EquipmentDB or {text = L.NOSET, icon = broker.icon}
+ Broker_EquipmentDB = Broker_EquipmentDB or {text = L.NOSET, icon = [=[Interface\PaperDollInfoFrame\UI-EquipmentManager-Toggle]=]}
self.info = {}
self.displayMode = 'MENU'