Quantcast

Small fixes

MilleXIV [08-22-16 - 11:53]
Small fixes
Filename
modules/armor.lua
modules/micromenu.lua
diff --git a/modules/armor.lua b/modules/armor.lua
index 8e33bbd..4261fab 100644
--- a/modules/armor.lua
+++ b/modules/armor.lua
@@ -30,6 +30,7 @@ function ArmorModule:OnEnable()
   if self.armorFrame == nil then
     self.armorFrame = CreateFrame("FRAME", nil, xb:GetFrame('bar'))
     xb:RegisterFrame('armorFrame', self.armorFrame)
+    self.armorFrame:Show()
   end
   self:CreateFrames()
   self:RegisterFrameEvents()
@@ -38,6 +39,7 @@ end

 function ArmorModule:OnDisable()
   self:UnregisterEvent('UPDATE_INVENTORY_DURABILITY')
+  self.armorFrame:Hide()
 end

 function ArmorModule:CreateFrames()
diff --git a/modules/micromenu.lua b/modules/micromenu.lua
index b34e892..3c09942 100644
--- a/modules/micromenu.lua
+++ b/modules/micromenu.lua
@@ -248,6 +248,10 @@ end

 function MenuModule:SocialHover(hoverFunc)
   return function()
+    if not xb.db.profile.modules.microMenu.showTooltips then
+      hoverFunc()
+      return
+    end
     local totalBNFriends, totalBNOnlineFriends = BNGetNumFriends()
     local totalFriends, totalOnlineFriends = GetNumFriends()

@@ -333,6 +337,10 @@ function MenuModule:GuildHover(hoverFunc)
       hoverFunc()
       return
     end
+    if not xb.db.profile.modules.microMenu.showTooltips then
+      hoverFunc()
+      return
+    end
     GameTooltip:SetOwner(MenuModule.frames.guild, 'ANCHOR_'..xb.miniTextPosition)
     GameTooltip:AddLine("[|cff6699FF"..L['Guild'].."|r]")
     GameTooltip:AddLine(" ")