Fix icon by calling lib's refresh method after loaded
Tek Hudson [01-10-20 - 15:19]
Fix icon by calling lib's refresh method after loaded
diff --git a/DruidBar.lua b/DruidBar.lua
index 951aa76..5fbc1bc 100644
--- a/DruidBar.lua
+++ b/DruidBar.lua
@@ -66,6 +66,8 @@ function DruidBar_OnEvent(self, event,...)
EventRegistration(event)
elseif event == "ADDON_LOADED" then
Load_Variables(className);
+ -- Now that we have loaded variables (including icon position), refresh the poisition of the icon
+ DruidBar_MinimapButton:Refresh("DruidBarMinimapIcon", DruidBarKey);
elseif className and className == "DRUID" and DruidBarKey.Enabled then
-- Show DruidBarUpdateFrame if hidden
if not DruidBarUpdateFrame:IsVisible() then DruidBarUpdateFrame:Show(); end