Quantcast

Move the creation of minimap button so it loads position from DruidBarKey

Tek Hudson [01-06-20 - 15:07]
Move the creation of minimap button so it loads position from DruidBarKey
Filename
DruidBar.lua
diff --git a/DruidBar.lua b/DruidBar.lua
index 1d2e691..ac5de07 100644
--- a/DruidBar.lua
+++ b/DruidBar.lua
@@ -29,9 +29,6 @@ function DruidBar_OnLoad()
 		SLASH_DRUIDBARSLASH1 = "/dbar";
 		SLASH_DRUIDBARSLASH2 = "/druidbar";
 		DBarSpellCatch:SetOwner(DruidBarUpdateFrame, "ANCHOR_NONE");
-
-	    -- Creating the minimap config icon
-		DruidBar_MinimapButton:Register("DruidBarMinimapIcon", minimapIconLDB, DruidBarKey);
 	end
 end
 function EventRegistration(event)
@@ -166,6 +163,9 @@ function Load_Variables(className)
 		ShapeshiftBar_ChangeForm = DruidBar_ChangeForm;
 		shiftload = true;
 	end
+
+  -- Creating the minimap config icon
+	DruidBar_MinimapButton:Register("DruidBarMinimapIcon", minimapIconLDB, DruidBarKey);
 end

 function DruidBar_ReflectionCheck()