mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
Performance : Skip loading results for inactive property filters
This commit is contained in:
@@ -140,6 +140,8 @@ void RimEclipsePropertyFilter::fieldChangedByUi(const caf::PdmFieldHandle* chang
|
||||
|| &m_selectedCategoryValues == changedField
|
||||
|| &m_useCategorySelection == changedField)
|
||||
{
|
||||
this->resultDefinition->loadResult();
|
||||
this->computeResultValueRange();
|
||||
updateFilterName();
|
||||
this->updateIconState();
|
||||
this->uiCapability()->updateConnectedEditors();
|
||||
|
||||
@@ -72,8 +72,11 @@ void RimEclipsePropertyFilterCollection::loadAndInitializePropertyFilters()
|
||||
RimEclipsePropertyFilter* propertyFilter = propertyFilters[i];
|
||||
propertyFilter->resultDefinition->setEclipseCase(reservoirView()->eclipseCase());
|
||||
propertyFilter->initAfterRead();
|
||||
propertyFilter->resultDefinition->loadResult();
|
||||
propertyFilter->computeResultValueRange();
|
||||
if (isActive() && propertyFilter->isActive())
|
||||
{
|
||||
propertyFilter->resultDefinition->loadResult();
|
||||
propertyFilter->computeResultValueRange();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user