From d05ec6c4ad8239bf5ff0b9a0832932e2508a60f4 Mon Sep 17 00:00:00 2001 From: Antonio Lobato Date: Wed, 3 Jul 2024 15:49:38 -0700 Subject: [PATCH] Force disabled the broken ElvUI addon skin on load. Fixed a bug with title hiding on search bar in non-retail. --- core/init.lua | 9 ++++++--- themes/default.lua | 4 ++-- 2 files changed, 8 insertions(+), 5 deletions(-) diff --git a/core/init.lua b/core/init.lua index 4073ae31..271f38fc 100644 --- a/core/init.lua +++ b/core/init.lua @@ -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() diff --git a/themes/default.lua b/themes/default.lua index af437743..e4e15a0f 100644 --- a/themes/default.lua +++ b/themes/default.lua @@ -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