Add extra attributes to target profile editor

This commit is contained in:
DarkPhoenix
2019-07-26 17:48:19 +03:00
parent 5d5d9ff153
commit 27b8c12639
6 changed files with 83 additions and 9 deletions

View File

@@ -255,6 +255,18 @@ class Fit:
fitIDs.add(fit.ID)
return fitIDs
def processTargetProfileChange(self):
fitIDs = set()
for fit in set(self._loadedFits):
if fit is None:
continue
if not fit.targetProfile:
continue
if fit.calculated:
self.recalc(fit)
fitIDs.add(fit.ID)
return fitIDs
def switchFit(self, fitID):
pyfalog.debug("Switching fit to fit ID: {0}", fitID)
if fitID is None: