mirror of
https://github.com/OPM/ResInsight.git
synced 2026-10-24 14:17:52 -05:00
Workflows: Hide unused whole-input ports in the graph editor
The whole input model is only shown when it is wired, or when the task has no input fields of its own.
This commit is contained in:
1 parent
ec388ba34b
commit
3650b4fbfd
1 file changed
+7
-1
@@ -696,7 +696,13 @@ std::pair<std::vector<PortInfo>, std::vector<PortInfo>> editModePorts( const QJs
|
||||
const QString field = port.value( "name" ).toString();
|
||||
const bool required = port.value( "required" ).toBool();
|
||||
const bool provided = port.value( "wired" ).toBool() || port.value( "configured" ).toBool() || port.value( "covered" ).toBool();
|
||||
if ( field.isEmpty() ) hasWholeInput = true;
|
||||
|
||||
// The whole input model is only shown when it is wired, or when it is the only way into the task
|
||||
if ( field.isEmpty() )
|
||||
{
|
||||
if ( !port.value( "wired" ).toBool() && !task.value( "whole_input" ).toBool() ) continue;
|
||||
hasWholeInput = true;
|
||||
}
|
||||
|
||||
PortInfo info;
|
||||
info.key = keyForField( field );
|
||||
|
||||
Reference in new issue
Block a user