Change populate to not autorefresh. Only ever call populate if the

amount of slots in a fit changes or if the fit itself changes, call
refresh in all other cases
This commit is contained in:
cncfanatics
2010-09-15 17:44:23 +02:00
parent 32531728b0
commit bf6932b6cc
4 changed files with 23 additions and 29 deletions

View File

@@ -44,7 +44,9 @@ class DroneView(d.Display):
cFit = controller.Fit.getInstance()
fit = cFit.getFit(event.fitID)
self.populate(fit.drones if fit is not None else None)
stuff = fit.drones if fit is not None else None
self.populate(stuff)
self.refresh(stuff)
def addItem(self, event):
cFit = controller.Fit.getInstance()