Skip to content

Commit ed5510b

Browse files
authored
Fix implicit selector not having a slider (#9988)
1 parent 3a73a54 commit ed5510b

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/Classes/ItemsTab.lua

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -966,7 +966,7 @@ holding Shift will put it in the second.]])
966966
return self.displayItem and self.displayItem.rangeLineList[1] ~= nil and not (main.showAllItemAffixes and self.displayItem.rarity == "UNIQUE")
967967
end
968968
local function getSelectedModLine()
969-
return self.controls.displayItemRangeLine:GetSelValue() and self.controls.displayItemRangeLine:GetSelValue().modLine or nil
969+
return self.displayItem and self.displayItem.rangeLineList[self.controls.displayItemRangeLine.selIndex] or nil
970970
end
971971
local box = new("CheckBoxControl", { "LEFT", self.controls.displayItemRangeLine, "RIGHT", true }, { 0, 0, 18 }, nil)
972972
box.changeFunc = function(val)
@@ -1013,7 +1013,7 @@ holding Shift will put it in the second.]])
10131013
self:UpdateCustomControls()
10141014
end)
10151015
slider.shown = function()
1016-
local modLine = not main.showAllItemAffixes and self.displayItem and self.displayItem.rarity == "UNIQUE" and self.displayItem.rangeLineList[self.controls.displayItemRangeLine.selIndex]
1016+
local modLine = self.displayItem and not (main.showAllItemAffixes and self.displayItem.rarity == "UNIQUE") and self.displayItem.rangeLineList[self.controls.displayItemRangeLine.selIndex]
10171017
if modLine then
10181018
-- it's possible for the range to change while this slider is
10191019
-- hidden, so correct the slider to show the same value

0 commit comments

Comments
 (0)