Skip to content

Commit cc082e2

Browse files
authored
Fix function indicator bar on output port (#13108)
* Remove unused images. * Fix function indicator bar on output port
1 parent 2232793 commit cc082e2

File tree

3 files changed

+1
-10
lines changed

3 files changed

+1
-10
lines changed
-378 Bytes
Binary file not shown.
-365 Bytes
Binary file not shown.

src/DynamoCoreWpf/ViewModels/Core/OutPortViewModel.cs

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -309,16 +309,7 @@ private void OnMouseLeftButtonDownOnContext(object parameter)
309309

310310
protected override void RefreshPortColors()
311311
{
312-
var isCachedValueNull = node.NodeModel.CachedValue == null || node.NodeModel.CachedValue.Data == null;
313-
314-
if (node.NodeModel.CachedValue != null && node.NodeModel.CachedValue.IsFunction)
315-
{
316-
PortDefaultValueMarkerVisible = true;
317-
}
318-
else if (isCachedValueNull)
319-
{
320-
PortDefaultValueMarkerVisible = false;
321-
}
312+
PortDefaultValueMarkerVisible = node.NodeModel.CachedValue != null && node.NodeModel.CachedValue.IsFunction;
322313
}
323314
}
324315
}

0 commit comments

Comments
 (0)