The LDB plugin will only try to add itself if LDB is present

This commit is contained in:
Hendrik Leppkes
2008-09-05 17:20:09 +02:00
parent dadab99c7c
commit cf3a121b03
+3
View File
@@ -109,6 +109,8 @@ function Bartender4.modulePrototype:ToggleOptions()
end end
Bartender4:SetDefaultModulePrototype(Bartender4.modulePrototype) Bartender4:SetDefaultModulePrototype(Bartender4.modulePrototype)
local LDB = LibStub("LibDataBroker-1.1", true)
if LDB then
local L_BT_LEFT = L["|cffffff00Click|r to toggle bar lock"] local L_BT_LEFT = L["|cffffff00Click|r to toggle bar lock"]
local L_BT_RIGHT = L["|cffffff00Right-click|r to open the options menu"] local L_BT_RIGHT = L["|cffffff00Right-click|r to open the options menu"]
@@ -138,3 +140,4 @@ LibStub("LibDataBroker-1.1"):NewDataObject("Bartender4", {
tooltip:AddLine(L_BT_RIGHT) tooltip:AddLine(L_BT_RIGHT)
end, end,
}) })
end