File tree Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -20,18 +20,20 @@ public override StandardValuesCollection GetStandardValues(ITypeDescriptorContex
20
20
if ( workflowBuilder != null )
21
21
{
22
22
var portNames = ( from builder in workflowBuilder . Workflow . Descendants ( )
23
+ where builder is not DisableBuilder
23
24
let createPort = ExpressionBuilder . GetWorkflowElement ( builder ) as CreateArduino
24
25
where createPort != null && ! string . IsNullOrEmpty ( createPort . PortName )
25
26
select ! string . IsNullOrEmpty ( createPort . Name ) ? createPort . Name : createPort . PortName )
26
27
. Distinct ( )
27
28
. ToList ( ) ;
28
-
29
- if ( portNames . Count > 0 ) return new StandardValuesCollection ( portNames ) ;
30
- else return new StandardValuesCollection ( SerialPort . GetPortNames ( ) ) ;
29
+ if ( portNames . Count > 0 )
30
+ {
31
+ return new StandardValuesCollection ( portNames ) ;
32
+ }
31
33
}
32
34
}
33
35
34
- return base . GetStandardValues ( context ) ;
36
+ return new StandardValuesCollection ( SerialPort . GetPortNames ( ) ) ;
35
37
}
36
38
}
37
39
}
You can’t perform that action at this time.
0 commit comments