Quantcast

quick patch

Steven Jackson [05-04-15 - 02:02]
quick patch
Filename
SVUI_!Core/system/dock.lua
SVUI_!Core/system/henchmen.lua
diff --git a/SVUI_!Core/system/dock.lua b/SVUI_!Core/system/dock.lua
index 42d6ccf..65c57ca 100644
--- a/SVUI_!Core/system/dock.lua
+++ b/SVUI_!Core/system/dock.lua
@@ -848,9 +848,13 @@ local DockButton_OnClick = function(self, button)
 			local list = self:GetMenuList();
 			SV.Dropdown:Open(self, list, "Dock Options");
 		else
-			local thisIsShowing = DockBar_SetDefault(self.Parent, self)
-			if(self.PostClickFunction and thisIsShowing) then
-				self:PostClickFunction(button)
+			if(self.OverrideClickFunction) then
+				self:OverrideClickFunction(button)
+			else
+				local thisIsShowing = DockBar_SetDefault(self.Parent, self)
+				if(self.PostClickFunction and thisIsShowing) then
+					self:PostClickFunction(button)
+				end
 			end
 		end
 	end
diff --git a/SVUI_!Core/system/henchmen.lua b/SVUI_!Core/system/henchmen.lua
index aefd7a6..98844b8 100644
--- a/SVUI_!Core/system/henchmen.lua
+++ b/SVUI_!Core/system/henchmen.lua
@@ -569,7 +569,8 @@ local function LockdownCallback()
 end

 local function InitializeHenchmen()
-	SV.HenchmenButton = SV.Dock:SetDockButton("BottomRight", "Call Henchman!", [[Interface\AddOns\SVUI_!Core\assets\textures\Dock\DOCK-ICON-HENCHMAN]], SV.ToggleHenchman, "SVUI_Henchmen")
+	SV.HenchmenButton = SV.Dock:SetDockButton("BottomRight", "Call Henchman!", [[Interface\AddOns\SVUI_!Core\assets\textures\Dock\DOCK-ICON-HENCHMAN]], false, "SVUI_Henchmen")
+	SV.HenchmenButton.OverrideClickFunction = SV.ToggleHenchman
 	SV.Events:OnLock(LockdownCallback);
 end