Skip to content

Commit 05219ed

Browse files
committed
Fix colour leaking into total price label
1 parent 166001c commit 05219ed

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

src/Classes/TradeQuery.lua

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -859,7 +859,7 @@ function TradeQueryClass:UpdateControlsWithItems(row_idx)
859859
currency = self.resultTbl[row_idx][pb_index].currency,
860860
amount = self.resultTbl[row_idx][pb_index].amount,
861861
}
862-
self.controls.fullPrice.label = "Total Price: " .. self:GetTotalPriceString()
862+
self.controls.fullPrice.label = "^7Total Price: " .. self:GetTotalPriceString()
863863
self:UpdateDropdownList(row_idx)
864864
end
865865

@@ -870,7 +870,7 @@ function TradeQueryClass:SetFetchResultReturn(row_idx, index)
870870
currency = self.resultTbl[row_idx][index].currency,
871871
amount = self.resultTbl[row_idx][index].amount,
872872
}
873-
self.controls.fullPrice.label = "Total Price: " .. self:GetTotalPriceString()
873+
self.controls.fullPrice.label = "^7Total Price: " .. self:GetTotalPriceString()
874874
end
875875
end
876876

@@ -1120,7 +1120,7 @@ you can add them, copy the link here, and press "Price Item" to evaluate the ite
11201120
self.sortedResultTbl[row_idx] = nil
11211121
self.resultTbl[row_idx] = nil
11221122
self.totalPrice[row_idx] = nil
1123-
self.controls.fullPrice.label = "Total Price: " .. self:GetTotalPriceString()
1123+
self.controls.fullPrice.label = "^7Total Price: " .. self:GetTotalPriceString()
11241124
end)
11251125
controls["changeButton"..row_idx].shown = function() return self.resultTbl[row_idx] end
11261126
controls["resultDropdown"..row_idx] = new("DropDownControl", { "TOPLEFT", controls["changeButton"..row_idx], "TOPRIGHT"}, {8, 0, 351, row_height}, {}, function(index)

0 commit comments

Comments
 (0)