From c19b0f0e958f0a7d8e2316e5a1c40b649056b522 Mon Sep 17 00:00:00 2001 From: shagu Date: Sat, 6 Apr 2019 10:56:16 +0200 Subject: [PATCH] actionbar: hide keybinds on hidden buttons --- modules/actionbar.lua | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/modules/actionbar.lua b/modules/actionbar.lua index 94dbf2fd..31646369 100644 --- a/modules/actionbar.lua +++ b/modules/actionbar.lua @@ -241,8 +241,10 @@ pfUI:RegisterModule("actionbar", function () if not self.showempty and self.backdrop and not texture and showgrid == 0 then self.backdrop:Hide() + self.hide = true else self.backdrop:Show() + self.hide = nil end -- update cooldown @@ -325,9 +327,9 @@ pfUI:RegisterModule("actionbar", function () end -- keybinds - if self.bar == bar and self.bar ~= 11 and self.bar ~= 12 then + if not self.hide and self.bar == bar and self.bar ~= 11 and self.bar ~= 12 then self.keybind:SetText(GetBindingText(GetBindingKey("ACTIONBUTTON"..id), "KEY_", 1)) - elseif buttontypes[self.bar] then + elseif not self.hide and buttontypes[self.bar] then self.keybind:SetText(GetBindingText(GetBindingKey(buttontypes[self.bar]..id), "KEY_", 1)) else self.keybind:SetText("")