Skip modules which are not active

This commit is contained in:
DarkPhoenix
2019-07-08 07:22:21 +03:00
parent 04a74e278b
commit eda869fe0d
6 changed files with 8 additions and 4 deletions

View File

@@ -104,7 +104,7 @@ class FitGraph(metaclass=ABCMeta):
def clearCache(self, reason, extraData=None):
# If only one fit changed - clear plots which concern this fit
if reason == GraphCacheCleanupReason.fitChanged:
if reason in (GraphCacheCleanupReason.fitChanged, GraphCacheCleanupReason.fitRemoved):
# Clear plot cache
plotKeysToClear = set()
for cacheKey in self._plotCache: