Quantcast

Bar is resetting due to set movablew removing data from player's layout-local

Tek Hudson [01-10-20 - 15:58]
Bar is resetting due to set movablew removing data from player's layout-local
Filename
DruidBar.lua
diff --git a/DruidBar.lua b/DruidBar.lua
index b4f815e..0440b08 100644
--- a/DruidBar.lua
+++ b/DruidBar.lua
@@ -329,15 +329,13 @@ function DruidBar_MainGraphics()
 		if DruidBarKey.Lock then
 			dbarShow(DruidBarDontMove);
 			DruidBarFrame:EnableMouse(0);
-			DruidBarFrame:SetMovable(false)
-			DruidBarFrame:RegisterForDrag()
+			DruidBarFrame:RegisterForDrag();
 		else
 			dbarHide(DruidBarDontMove);
 			DruidBarFrame:EnableMouse(1);
-			DruidBarFrame:SetMovable(true)
-			DruidBarFrame:RegisterForDrag("LeftButton")
-			DruidBarFrame:SetScript("OnDragStart", DruidBarFrame.StartMoving)
-			DruidBarFrame:SetScript("OnDragStop", DruidBarFrame.StopMovingOrSizing)
+			DruidBarFrame:RegisterForDrag("LeftButton");
+			DruidBarFrame:SetScript("OnDragStart", DruidBarFrame.StartMoving);
+			DruidBarFrame:SetScript("OnDragStop", DruidBarFrame.StopMovingOrSizing);
 		end
 	else
 		dbarHide(DruidBarFrame);