From 7865e2f35897f72ee0b76b2b14d3e86e9f7c8c8f Mon Sep 17 00:00:00 2001 From: juxuanu Date: Fri, 28 Feb 2020 16:18:17 +0100 Subject: [PATCH] Update Tooltip.lua --- ElvUI/Modules/Tooltip/Tooltip.lua | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/ElvUI/Modules/Tooltip/Tooltip.lua b/ElvUI/Modules/Tooltip/Tooltip.lua index 2a76b8dd0..cbc1d888f 100644 --- a/ElvUI/Modules/Tooltip/Tooltip.lua +++ b/ElvUI/Modules/Tooltip/Tooltip.lua @@ -521,20 +521,17 @@ function TT:GameTooltip_OnTooltipSetItem(tt) if self.db.itemCount == "BAGS_ONLY" then right = format("|cFFCA3C3C%s|r %d", L["Count"], num) elseif self.db.itemCount == "BANK_ONLY" then - bankCount = format("|cFFCA3C3C%s|r %d", L["Bank"], (numall - num)) + right = format("|cFFCA3C3C%s|r %d", L["Bank"], (numall - num)) elseif self.db.itemCount == "BOTH" then right = format("|cFFCA3C3C%s|r %d", L["Count"], num) bankCount = format("|cFFCA3C3C%s|r %d", L["Bank"], (numall - num)) + right = right .. " " .. bankCount end if left or right then - tt:AddLine(" ") tt:AddDoubleLine(left or " ", right or " ") end - if bankCount then - tt:AddDoubleLine(" ", bankCount) - end - + tt.itemCleared = true end @@ -732,4 +729,4 @@ local function InitializeCallback() TT:Initialize() end -E:RegisterModule(TT:GetName(), InitializeCallback) \ No newline at end of file +E:RegisterModule(TT:GetName(), InitializeCallback)