From be945add01defcec008a10ff1f782ed4e433c2dd Mon Sep 17 00:00:00 2001 From: Hendrik Leppkes Date: Fri, 15 May 2009 17:59:15 +0200 Subject: [PATCH] Possible workaround for action blocked messages when using the default vehicle ui and the micromenu. --- MicroMenu.lua | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/MicroMenu.lua b/MicroMenu.lua index d2e9ed7..087f9b5 100644 --- a/MicroMenu.lua +++ b/MicroMenu.lua @@ -51,7 +51,7 @@ function MicroMenuMod:OnEnable() MicroMenuMod.button_count = #buttons - self:RawHook("UpdateTalentButton", noopFunc, true) + self:SecureHook("UpdateTalentButton") self:RawHook("AchievementMicroButton_Update", noopFunc, true) AchievementMicroButton:SetScript("OnEvent", nil) @@ -80,6 +80,10 @@ function MicroMenuMod:RestoreButtons() self.bar:UpdateButtonLayout() end +function MicroMenuMod:UpdateTalentButton() + self:RestoreButtons() +end + MicroMenuBar.button_width = 28 MicroMenuBar.button_height = 58 MicroMenuBar.vpad_offset = -21