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:
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user