Skip to content

Commit 884c1b9

Browse files
committed
move flag to treeTab because it loads sooner
1 parent 8a8ddc8 commit 884c1b9

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

src/Classes/ItemsTab.lua

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,6 @@ local ItemsTabClass = newClass("ItemsTab", "UndoHandler", "ControlHost", "Contro
9696
self.orderedSlots = { }
9797
self.slotOrder = { }
9898
self.initSockets = true
99-
self.skipTimeLostJewelProcessing = false
10099
self.slotAnchor = new("Control", {"TOPLEFT",self,"TOPLEFT"}, {96, 76, 310, 0})
101100
local prevSlot = self.slotAnchor
102101
local function addSlot(slot)
@@ -3061,9 +3060,9 @@ function ItemsTabClass:AddItemTooltip(tooltip, item, slot, dbMode)
30613060
if not main.slotOnlyTooltips or (slot and (slot.nodeId == compareSlot.nodeId or slot.slotName == compareSlot.slotName)) or not slot or slot == compareSlot then
30623061
local selItem = self.items[compareSlot.selItemId]
30633062
-- short term fix for Time-Lost jewel processing
3064-
self.skipTimeLostJewelProcessing = true
3063+
self.build.treeTab.skipTimeLostJewelProcessing = true
30653064
local output = calcFunc({ repSlotName = compareSlot.slotName, repItem = item ~= selItem and item or nil})
3066-
self.skipTimeLostJewelProcessed = false
3065+
self.build.treeTab.skipTimeLostJewelProcessing = false
30673066
local header
30683067
if item == selItem then
30693068
header = "^7Removing this item from "..compareSlot.label.." will give you:"

src/Classes/TreeTab.lua

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ local TreeTabClass = newClass("TreeTab", "ControlHost", function(self, build)
3131
self.specList[1] = new("PassiveSpec", build, latestTreeVersion)
3232
self:SetActiveSpec(1)
3333
self:SetCompareSpec(1)
34+
self.skipTimeLostJewelProcessing = false
3435

3536
self.anchorControls = new("Control", nil, {0, 0, 0, 20})
3637

src/Modules/CalcSetup.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ end
143143

144144
local function addStats(jewel, node, spec)
145145
-- short term to avoid running the logic on AddItemTooltip
146-
if not spec.build.itemsTab.skipTimeLostJewelProcessing then
146+
if not spec.build.treeTab.skipTimeLostJewelProcessing then
147147
-- reset node stats to base or override for attributes
148148
if spec.hashOverrides and spec.hashOverrides[node.id] then
149149
node.sd = copyTable(spec.hashOverrides[node.id].sd, true)

0 commit comments

Comments
 (0)