Sort boosters by slot

This commit is contained in:
DarkPhoenix
2019-03-21 23:55:25 +03:00
parent 6291fe1626
commit 1b7c23b1d3
2 changed files with 5 additions and 2 deletions

View File

@@ -110,6 +110,9 @@ class BoosterView(d.Display):
self.origional = fit.boosters if fit is not None else None
self.boosters = stuff = fit.boosters[:] if fit is not None else None
if stuff is not None:
stuff.sort(key=lambda booster: booster.slot or 0)
if event.fitID != self.lastFitId:
self.lastFitId = event.fitID