Skip to content

Commit

Permalink
Fix Scan Trade error
Browse files Browse the repository at this point in the history
  • Loading branch information
b-morgan committed May 4, 2024
1 parent 94c9339 commit f10328c
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions UI/MainFrame.lua
Original file line number Diff line number Diff line change
Expand Up @@ -835,10 +835,10 @@ function Skillet:UpdateTradeButtons(player)
if tradeID == SMELTING then tradeID = MINING end
if tradeID == self.currentTrade then
button:SetChecked(true)
if self.data.skillList[player][tradeID] and self.data.skillList[player][tradeID].scanned then
buttonIcon:SetVertexColor(1,1,1)
else
if self.data.skillList[player][tradeID] and self.data.skillList[player][tradeID].scanTradeReason then
buttonIcon:SetVertexColor(1,0,0)
else
buttonIcon:SetVertexColor(1,1,1)
end
else
button:SetChecked(false)
Expand Down Expand Up @@ -1820,6 +1820,7 @@ function Skillet:UpdateDetailsWindow(skillIndex)
-- Fill the skill level bar
--
if recipe.itemID and recipe.spellID then
--DA.DEBUG(1,"UpdateDetailsWindow: recipe= "..DA.DUMP1(recipe))
--DA.DEBUG(1,"UpdateDetailsWindow: itemID= "..tostring(recipe.itemID)..", spellID= "..tostring(recipe.spellID))
local orange,yellow,green,gray = self:GetTradeSkillLevels(recipe.itemID, recipe.spellID)
--
Expand Down

0 comments on commit f10328c

Please sign in to comment.