Disable fit add on pages based on context (ship vs citadel)

This commit is contained in:
blitzmann
2016-07-04 01:03:30 -04:00
parent 3734be21d6
commit fe8c3a4957
12 changed files with 77 additions and 26 deletions

View File

@@ -159,6 +159,11 @@ class ProjectedView(d.Display):
return fit.name
def fitChanged(self, event):
sFit = service.Fit.getInstance()
fit = sFit.getFit(event.fitID)
self.Parent.Parent.DisablePage(self, not fit)
#Clear list and get out if current fitId is None
if event.fitID is None and self.lastFitId is not None:
self.DeleteAllItems()
@@ -166,8 +171,6 @@ class ProjectedView(d.Display):
event.Skip()
return
sFit = service.Fit.getInstance()
fit = sFit.getFit(event.fitID)
stuff = []
if fit is not None:
self.modules = fit.projectedModules[:]