mirror of
https://github.com/OPM/ResInsight.git
synced 2026-10-25 06:38:13 -05:00
Move OSDU well logs and undo/redo view to experimental features
Gate the OSDU well log import menu item and the command undo/redo history view behind the discoverable experimental features registry instead of RiaApplication::enableDevelopmentFeatures(), so they can be toggled from Preferences -> System without setting the RESINSIGHT_DEVEL environment variable. Register the 'osdu-well-logs' and 'undo-redo-view' features in RiaExperimentalFeatures and gate the code paths via RiaPreferencesSystem::isFeatureEnabled().
This commit is contained in:
1 parent
5434873984
commit
a0e502f75e
3 files changed
+9
-4
No files matched your search
@@ -21,6 +21,7 @@
|
||||
|
||||
#include "QuickAccess/RimFieldQuickAccess.h"
|
||||
#include "RiaApplication.h"
|
||||
#include "RiaPreferencesSystem.h"
|
||||
|
||||
#include "ContourMap/RimEclipseContourMapViewCollection.h"
|
||||
#include "Formations/RimFormationNames.h"
|
||||
@@ -1408,8 +1409,8 @@ int RimContextCommandBuilder::appendImportMenu( caf::CmdFeatureMenuBuilder& menu
|
||||
candidates << "RicReloadWellPathFormationNamesFeature";
|
||||
|
||||
// Import of well logs from OSDU is disabled by default. The quality of well log data from OSDU is not sufficient for effective
|
||||
// use. The environment variable RESINSIGHT_DEVEL must be set to enable this feature.
|
||||
if ( addOsduImportMenuItem && RiaApplication::enableDevelopmentFeatures() )
|
||||
// use. Enable the "OSDU Well Logs" experimental feature (Preferences -> System) to enable this menu item.
|
||||
if ( addOsduImportMenuItem && RiaPreferencesSystem::current()->isFeatureEnabled( "osdu-well-logs" ) )
|
||||
{
|
||||
candidates << "RicImportWellLogOsduFeature";
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user