From 155da6504ff851257f836e21c279c7ff3e6d7744 Mon Sep 17 00:00:00 2001 From: shagu Date: Sat, 5 Aug 2023 12:01:31 +0200 Subject: [PATCH] thirdparty: use active shagudps config table --- modules/thirdparty.lua | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/modules/thirdparty.lua b/modules/thirdparty.lua index 40c4bc8c..3352923a 100644 --- a/modules/thirdparty.lua +++ b/modules/thirdparty.lua @@ -232,7 +232,6 @@ pfUI:RegisterModule("thirdparty", "vanilla:tbc", function() -- Vanilla: https://github.com/shagu/ShaguDPS -- TBC: https://github.com/shagu/ShaguDPS HookAddonOrVariable("ShaguDPS", function() - local hookRefresh = ShaguDPSWindow.Refresh ShaguDPSWindow.Refresh = function(arg1, arg2) hookRefresh(arg1, arg2) @@ -257,11 +256,11 @@ pfUI:RegisterModule("thirdparty", "vanilla:tbc", function() ShaguDPSWindow:SetWidth(pfUI.chat.right:GetWidth() / 2) end, function() -- show - ShaguDPS_Config.visible = 1 + ShaguDPS.config.visible = 1 ShaguDPSWindow.Refresh(true) end, function() -- hide - ShaguDPS_Config.visible = 0 + ShaguDPS.config.visible = 0 ShaguDPSWindow.Refresh(true) end }