mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
Add preferences setting for maximum search depth in script folders. Clean up context menu a bit. (#9012)
This commit is contained in:
@@ -41,6 +41,10 @@ CAF_CMD_SOURCE_INIT( RicDeleteScriptPathFeature, "RicDeleteScriptPathFeature" );
|
||||
bool RicDeleteScriptPathFeature::isCommandEnabled()
|
||||
{
|
||||
std::vector<RimScriptCollection*> selection = RicScriptFeatureImpl::selectedScriptCollections();
|
||||
if ( selection.size() == 1 )
|
||||
{
|
||||
if ( selection.front()->directory().isEmpty() ) return false;
|
||||
}
|
||||
return selection.size() > 0;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user