Changed code so that we no longer create the LibDBIcon-1.0 minimap button if Broker2FuBar or FuBar exists as we have direct FuBar support.

This commit is contained in:
Xinhuan
2008-11-03 07:38:53 +08:00
parent c6d780f9df
commit 0a91f771cf
+3 -3
View File
@@ -474,7 +474,7 @@ function Omen:PLAYER_LOGIN()
tt:AddLine("|cffffff00" .. L["Right-click|r to open the options menu"])
end,
})
if LDBIcon then
if LDBIcon and not IsAddOnLoaded("Broker2FuBar") and not IsAddOnLoaded("FuBar") then
LDBIcon:Register("Omen", OmenLauncher, db.MinimapIcon)
end
end
@@ -563,7 +563,7 @@ function Omen:OnProfileChanged(event, database, newProfileKey)
self:UpdateFuBarSettings()
-- These remainder settings were not placed in functions
-- and were just updated directly from the config code.
if LDBIcon then
if LDBIcon and not IsAddOnLoaded("Broker2FuBar") and not IsAddOnLoaded("FuBar") then
LDBIcon:Refresh("Omen", db.MinimapIcon)
end
if db.ShowWith.HideWhenOOC then
@@ -1786,7 +1786,7 @@ local options = {
db.MinimapIcon.hide = not value
if value then LDBIcon:Show("Omen") else LDBIcon:Hide("Omen") end
end,
disabled = function() return not LDBIcon end,
hidden = function() return not LDBIcon or IsAddOnLoaded("Broker2FuBar") or IsAddOnLoaded("FuBar") end,
},
IgnorePlayerPets = {
type = "toggle",