From 43af436c63f970dc0be5b3cfb7c89e582c1d77ca Mon Sep 17 00:00:00 2001 From: vaisest <4550061+vaisest@users.noreply.github.com> Date: Fri, 24 Jul 2026 21:48:26 +0300 Subject: [PATCH] Fix implicit selector not having a slider --- src/Classes/ItemsTab.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Classes/ItemsTab.lua b/src/Classes/ItemsTab.lua index e4e36724e9..b998a66602 100644 --- a/src/Classes/ItemsTab.lua +++ b/src/Classes/ItemsTab.lua @@ -965,7 +965,7 @@ holding Shift will put it in the second.]]) return self.displayItem and self.displayItem.rangeLineList[1] ~= nil and not (main.showAllItemAffixes and self.displayItem.rarity == "UNIQUE") end local function getSelectedModLine() - return self.controls.displayItemRangeLine:GetSelValue() and self.controls.displayItemRangeLine:GetSelValue().modLine or nil + return self.displayItem and self.displayItem.rangeLineList[self.controls.displayItemRangeLine.selIndex] or nil end local box = new("CheckBoxControl", { "LEFT", self.controls.displayItemRangeLine, "RIGHT", true }, { 0, 0, 18 }, nil) box.changeFunc = function(val) @@ -1012,7 +1012,7 @@ holding Shift will put it in the second.]]) self:UpdateCustomControls() end) slider.shown = function() - local modLine = not main.showAllItemAffixes and self.displayItem and self.displayItem.rarity == "UNIQUE" and self.displayItem.rangeLineList[self.controls.displayItemRangeLine.selIndex] + local modLine = self.displayItem and not (main.showAllItemAffixes and self.displayItem.rarity == "UNIQUE") and self.displayItem.rangeLineList[self.controls.displayItemRangeLine.selIndex] if modLine then -- it's possible for the range to change while this slider is -- hidden, so correct the slider to show the same value