The LDB plugin will only try to add itself if LDB is present
This commit is contained in:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user