Skip to content

Commit

Permalink
Force disabled the broken ElvUI addon skin on load.
Browse files Browse the repository at this point in the history
Fixed a bug with title hiding on search bar in non-retail.
  • Loading branch information
Cidan committed Jul 3, 2024
1 parent f495aa5 commit d05ec6c
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 5 deletions.
9 changes: 6 additions & 3 deletions core/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -202,13 +202,16 @@ function addon:UpdateButtonHighlight()
end

local function applyCompat()
if not addon.isCata then return end
-- No compats right now :)
C_Timer.After(5, function()
if C_AddOns.IsAddOnLoaded("BetterBagsElvUISkin") then
question:Alert("Disable ElvUI Plugin", "The ElvUI BetterBags plugin you have installed is not compatible with BetterBags. It has been disabled -- please reload your UI to apply the changes.")
C_AddOns.DisableAddOn("BetterBagsElvUISkin")
end
end)
end

-- OnEnable is called when the addon is enabled.
function addon:OnEnable()
-- Hackfix for Cata
applyCompat()
debug:Enable()
masque:Enable()
Expand Down
4 changes: 2 additions & 2 deletions themes/default.lua
Original file line number Diff line number Diff line change
Expand Up @@ -118,9 +118,9 @@ local defaultTheme = {
if decoration then
decoration.search:SetShown(shown)
if shown then
decoration.TitleContainer:Hide()
decoration.TitleContainer.TitleText:Hide()
else
decoration.TitleContainer:Show()
decoration.TitleContainer.TitleText:Show()
end
end
end
Expand Down

0 comments on commit d05ec6c

Please sign in to comment.