From fa37f641e57d6feb69b435a98b417a2ff964e52a Mon Sep 17 00:00:00 2001 From: shaga <14+shaga@noreply.octowow.st> Date: Thu, 15 Oct 2026 04:30:27 +0000 Subject: [PATCH] Take over from ShaguTweaks when both are installed ShagaTweaks and the original ShaguTweaks share the ShaguTweaks namespace, so running both applies every tweak twice. When the original is loaded too, ShagaTweaks now stays idle for that session and turns ShaguTweaks and ShaguTweaks-extras off, so from the next login or /reload only ShagaTweaks runs. Settings carry over: both addons save ShaguTweaks_config and ShaguTweaks_cache, so the session that has both writes the original's settings into ShagaTweaks' saved variables. --- main.lua | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/main.lua b/main.lua index 4ef5503..ac12eb5 100644 --- a/main.lua +++ b/main.lua @@ -41,6 +41,15 @@ ShaguTweaks:SetScript("OnEvent", function() return end + -- ShagaTweaks replaces ShaguTweaks: when the original is loaded as well, it + -- runs this session and is turned off from the next one. Its settings carry + -- over, as both addons save ShaguTweaks_config and ShaguTweaks_cache. + if IsAddOnLoaded("ShaguTweaks") then + DisableAddOn("ShaguTweaks") + DisableAddOn("ShaguTweaks-extras") + return + end + -- load current expansion local expansion = ShaguTweaks:GetExpansion()