mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
#3620 Hide the "New Valve" feature if RESINSIGHT_DEVEL is not 1.
This commit is contained in:
parent
9763f420a8
commit
046a2acc67
@ -1,6 +1,7 @@
|
||||
#include "RicNewValveFeature.h"
|
||||
#include "Riu3DMainWindowTools.h"
|
||||
|
||||
#include "RiaApplication.h"
|
||||
#include "RimPerforationInterval.h"
|
||||
#include "RimWellPathValve.h"
|
||||
#include "RimWellPathCollection.h"
|
||||
@ -17,7 +18,7 @@ CAF_CMD_SOURCE_INIT(RicNewValveFeature, "RicNewValveFeature");
|
||||
bool RicNewValveFeature::isCommandEnabled()
|
||||
{
|
||||
const RimPerforationInterval* perfInterval = caf::SelectionManager::instance()->selectedItemOfType<RimPerforationInterval>();
|
||||
return perfInterval != nullptr;
|
||||
return perfInterval != nullptr && RiaApplication::enableDevelopmentFeatures();
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
|
Loading…
Reference in New Issue
Block a user