Change price column to use new method
This commit is contained in:
@@ -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 += " (!)"
|
||||
|
||||
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user