Fix Show Minimap button setting to work with new lib
Tek Hudson [08-12-19 - 07:09]
Fix Show Minimap button setting to work with new lib
diff --git a/DruidBar.lua b/DruidBar.lua
index d80fb1a..3b034fb 100644
--- a/DruidBar.lua
+++ b/DruidBar.lua
@@ -444,9 +444,9 @@ function DruidBar_MainGraphics()
-- If Minimap Icon should show based on settings
if DruidBarKey.Minimap then
- DruidBar_MinimapButton:Show();
+ DruidBar_MinimapButton:Show("DruidBarMinimapIcon");
else
- DruidBar_MinimapButton:Hide();
+ DruidBar_MinimapButton:Hide("DruidBarMinimapIcon");
end
-- If DruidBar should show based on settings
if DruidBar_ShouldBeVisible() then
@@ -1021,7 +1021,3 @@ function DruidBar_ChangeBestForm()
UIErrorsFrame.AddMessage = UIErrorsFrame.realEcho;
end
end
-
-function DruidBar_MinimapButton_OnClick()
- DRUIDBAROptionsFrame_Toggle();
-end