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:
Kristian Bendiksen committed 2026-10-21 11:19:35 +02:00
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 );