Change price column to use new method

This commit is contained in:
Ebag333
2017-04-13 12:00:16 -07:00
committed by blitzmann
parent 711537dcf4
commit 0079f76f67
2 changed files with 3 additions and 3 deletions

View File

@@ -45,8 +45,7 @@ class Price(ViewColumn):
if stuff.isEmpty:
return ""
sPrice = ServicePrice.getInstance()
price = sPrice.getPriceNow(stuff.item)
price = stuff.item.price.price
if not price:
return ""
@@ -60,7 +59,7 @@ class Price(ViewColumn):
sPrice = ServicePrice.getInstance()
def callback(item):
price = sPrice.getPriceNow(item.ID)
price = item.item.price
text = formatAmount(price.price, 3, 3, 9, currency=True) if price.price else ""
if price.failed:
text += " (!)"

View File

@@ -481,6 +481,7 @@ class FittingView(d.Display):
# This only happens when turning on/off slot divisions
self.populate(self.mods)
self.refresh(self.mods)
self.Refresh()
self.Show(self.activeFitID is not None and self.activeFitID == event.fitID)
except wx._core.PyDeadObjectError: