Skip to content

Commit

Permalink
remove correct guild disabling code
Browse files Browse the repository at this point in the history
  • Loading branch information
Goldpaw committed Feb 12, 2024
1 parent 7c059f3 commit 3fd2bf1
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions TooltipCleaner/Core/main.lua
Original file line number Diff line number Diff line change
Expand Up @@ -532,7 +532,7 @@ ns.OnTooltipSetUnit = function(self, tooltip, tooltipData)
local db = self:GetSettings().profile
local tipName = tooltip:GetName()

if (not IsClassic) and (db.hideGuild and UnitIsPlayer(unit) and GetGuildInfo(unit)) then
if (db.hideGuild and UnitIsPlayer(unit) and GetGuildInfo(unit)) then
local line = _G[tipName.."TextLeft2"]
line:SetText("")
line:Hide()
Expand Down Expand Up @@ -631,11 +631,11 @@ ns.OnTooltipSetUnitClassic = function(self, tooltip)

local foundPvP, foundFaction, foundSpec = false, false, false

if (db.hideGuild and UnitIsPlayer(unit) and GetGuildInfo(unit)) then
local line = _G[tipName.."TextLeft2"]
line:SetText("")
line:Hide()
end
--if (db.hideGuild and UnitIsPlayer(unit) and GetGuildInfo(unit)) then
-- local line = _G[tipName.."TextLeft2"]
-- line:SetText("")
-- line:Hide()
--end

local numLines = tooltip:NumLines()
if (numLines >= 2) then
Expand Down

0 comments on commit 3fd2bf1

Please sign in to comment.