From dc3479947566e414f87d7c9a5abf5c471bf4268b Mon Sep 17 00:00:00 2001 From: dein0s Date: Tue, 5 Mar 2019 00:27:27 +0300 Subject: [PATCH] actionbar: set macro text when option is enabled --- modules/actionbar.lua | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/modules/actionbar.lua b/modules/actionbar.lua index f271b884..772d5039 100644 --- a/modules/actionbar.lua +++ b/modules/actionbar.lua @@ -263,7 +263,11 @@ pfUI:RegisterModule("actionbar", function () end -- update macro text - self.macro:SetText(GetActionText(sid)) + if C.bars["bar"..self.bar] and C.bars["bar"..self.bar].showmacro == "1" then + self.macro:SetText(GetActionText(sid)) + else + self.macro:SetText("") + end end -- update usable