Add active column. Looping the fit to apply it x amount of times doesn't seem to work. Probably because it's been flagged calculated and returns early

This commit is contained in:
blitzmann
2015-07-07 00:25:24 -04:00
parent 2bca3ddcc8
commit b95a10d284
5 changed files with 15 additions and 10 deletions

View File

@@ -39,7 +39,7 @@ class BaseName(ViewColumn):
elif isinstance(stuff, Cargo):
return "%dx %s" % (stuff.amount, stuff.item.name)
elif isinstance(stuff, Fit):
return "%s (%s)" % (stuff.name, stuff.ship.item.name)
return "%dx %s (%s)" % (stuff.projectionInfo.amount, stuff.name, stuff.ship.item.name)
elif isinstance(stuff, Rack):
if service.Fit.getInstance().serviceFittingOptions["rackLabels"]:
if stuff.slot == Slot.MODE:

View File

@@ -67,7 +67,7 @@ class State(ViewColumn):
elif isinstance(stuff, Fit):
if stuff.projectionInfo is None:
return -1
if stuff.projectionInfo.amount > 0:
if stuff.projectionInfo.active:
return generic_active
return generic_inactive
else: