Skip to content

Commit

Permalink
Pinned Note on Dismissed Warnings (#13128)
Browse files Browse the repository at this point in the history
* Pinned Note on Dismissed Warnings

- pinned Note correctly aligns to the Node once a Warning is dismissed

* Copy Paste Wire Pins

- for internal review, Commit may be reverted later
- attempts to allow Copy/Paste for Pins (ConnectorPinModel)
- working directly inside the Copy() and Paste() methods of DynamoModel

* Revert "Copy Paste Wire Pins"

This reverts commit 056a7c1.
  • Loading branch information
dnenov authored Jul 22, 2022
1 parent d9f540f commit 375351d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/DynamoCoreWpf/ViewModels/Core/NoteViewModel.cs
Original file line number Diff line number Diff line change
Expand Up @@ -468,8 +468,8 @@ private void MoveNoteAbovePinnedNode()
if (PinnedNode == null) return;

var distanceToNode = DISTANCE_TO_PINNED_NODE;
if (Model.PinnedNode.State == ElementState.Error ||
Model.PinnedNode.State == ElementState.Warning)
if ((Model.PinnedNode.State == ElementState.Error ||
Model.PinnedNode.State == ElementState.Warning) && Model.PinnedNode.DismissedAlerts.Count == 0)
{
distanceToNode = DISTANCE_TO_PINNED_NODE_WITH_WARNING;
}
Expand Down

0 comments on commit 375351d

Please sign in to comment.