Fix bug where the toggle button the compare pane didn't do anything. (Need to check toggleView because you can hit both first and second if otherwise.)

This commit is contained in:
Ebag333
2017-02-09 00:18:19 -08:00
parent 11d7f9d029
commit f61aeb8285

View File

@@ -665,7 +665,7 @@ class ItemCompare(wx.Panel):
value = item.attributes[attr].value
if self.toggleView != 1:
valueUnit = str(value)
if info and info.unit:
elif info and info.unit and self.toggleView == 1:
valueUnit = self.TranslateValueUnit(value, info.unit.displayName, info.unit.name)
else:
valueUnit = formatAmount(value, 3, 0, 0)