From aecef68ab6f0683d2dc8f1fb80315b9598d7a592 Mon Sep 17 00:00:00 2001 From: shagu Date: Wed, 30 May 2018 21:14:48 +0200 Subject: [PATCH] autovendor: hide button if autosell is enabled --- modules/autovendor.lua | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/modules/autovendor.lua b/modules/autovendor.lua index 8792496e..e4ae1227 100644 --- a/modules/autovendor.lua +++ b/modules/autovendor.lua @@ -86,6 +86,9 @@ pfUI:RegisterModule("autovendor", function () if C["global"]["autosell"] == "1" then autovendor:Show() + autovendor.button:Hide() + else + autovendor.button:Show() end MerchantRepairText:SetText("") @@ -147,7 +150,7 @@ pfUI:RegisterModule("autovendor", function () if not pfMerchantFrame_Update then local pfMerchantFrame_Update = MerchantFrame_Update function _G.MerchantFrame_Update() - if MerchantFrame.selectedTab == 1 then + if MerchantFrame.selectedTab == 1 and C["global"]["autosell"] ~= "1" then autovendor.button:Show() else autovendor.button:Hide()