From 0a91f771cf25e98474dd39505a534c22f9442769 Mon Sep 17 00:00:00 2001 From: Xinhuan Date: Mon, 3 Nov 2008 07:38:53 +0800 Subject: [PATCH] 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. --- Omen.lua | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Omen.lua b/Omen.lua index 2cbc110..b5b7028 100644 --- a/Omen.lua +++ b/Omen.lua @@ -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",