mirror of
https://github.com/OPM/ResInsight.git
synced 2026-10-14 01:12:11 -05:00
Performance: Avoid calling allSummaryCases
allSummaryCases() is potentially a heavy CPU call for large ensembles. Always show the curve calculator button.
This commit is contained in:
1 parent
f52acd9a64
commit
7d440a9c2f
1 file changed
+1
-6
+1
-6
@@ -60,12 +60,7 @@ void RicShowSummaryCurveCalculatorFeature::hideCurveCalculatorDialog()
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
bool RicShowSummaryCurveCalculatorFeature::isCommandEnabled()
|
||||
{
|
||||
RimProject* proj = RimProject::current();
|
||||
if ( !proj ) return false;
|
||||
|
||||
const auto& allSumCases = proj->allSummaryCases();
|
||||
|
||||
return !allSumCases.empty();
|
||||
return true;
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
|
||||
Reference in new issue
Block a user