Quantcast

Don't change the collapse/expand setting

Adrian L Lange [11-30-11 - 16:55]
Don't change the collapse/expand setting
Filename
Thaumaturge.lua
diff --git a/Thaumaturge.lua b/Thaumaturge.lua
index c180284..e0be785 100644
--- a/Thaumaturge.lua
+++ b/Thaumaturge.lua
@@ -92,16 +92,10 @@ local origSize
 local origEnter = PaperDollItemSlotButton_OnEnter
 local origLeave = UIDropDownMenu_OnHide
 function Thaumaturge:FORGE_MASTER_OPENED()
-	origSize = CharacterFrame.Expanded
-
 	if(not PaperDollFrame:IsVisible()) then
 		ToggleCharacter('PaperDollFrame')
 	end

-	if(CharacterFrame.Expanded) then
-		CharacterFrame_Collapse()
-	end
-
 	PaperDollItemSlotButton_OnEnter = ReforgeHook
 	UIDropDownMenu_OnHide = function(...)
 		origLeave(...)
@@ -118,10 +112,6 @@ end
 function Thaumaturge:FORGE_MASTER_CLOSED()
 	PaperDollItemSlotButton_OnEnter = origEnter
 	UIDropDownMenu_OnHide = origLeave
-
-	if(origSize and not CharacterFrame.Expanded) then
-		CharacterFrame_Expand()
-	end
 end

 function Thaumaturge:PLAYER_LOGIN()