From a56acbd08dc87c5e7a9dd88b9245a4a2562a88db Mon Sep 17 00:00:00 2001 From: Noshei <8866000+Noshei@users.noreply.github.com> Date: Sun, 20 Oct 2024 18:36:41 -0600 Subject: [PATCH] 2.6.2 fixed logic issue added note to tooltip option about poor interaction with Collapse Display option --- Config.lua | 3 ++- DisplayCreation.lua | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/Config.lua b/Config.lua index dd662b2..d8e454b 100644 --- a/Config.lua +++ b/Config.lua @@ -427,7 +427,8 @@ local generalOptions = { type = "toggle", name = "Display Item Tooltip", desc = - "When selected the item tooltip will be displayed when mousing over an items icon.", + "When selected the item tooltip will be displayed when mousing over an items icon.\n\n" .. + "Interacts poorly with the Collapse Display option, not recommended to use both.", width = 1.70, get = function() return GT.db.profile.General.itemTooltip end, set = function(_, key) diff --git a/DisplayCreation.lua b/DisplayCreation.lua index 6b3f80e..00007f9 100644 --- a/DisplayCreation.lua +++ b/DisplayCreation.lua @@ -167,7 +167,7 @@ function GT:DisplayFrameIcon(frame, iconId, id) frame.icon:SetHeight(GT.db.profile.General.iconHeight) frame.icon:Show() - if id <= #GT.ItemData.Other.Other and id >= 9999999998 then + if id <= #GT.ItemData.Other.Other or id >= 9999999998 then return end if not GT.db.profile.General.itemTooltip then