Skip to content

Commit

Permalink
Merge branch 'master' of https://github.com/DynamoDS/Dynamo
Browse files Browse the repository at this point in the history
  • Loading branch information
zeusongit committed Jan 17, 2024
2 parents 0a671b2 + 4912485 commit a7d388d
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 6 deletions.
14 changes: 9 additions & 5 deletions src/Libraries/CoreNodeModels/Selection.cs
Original file line number Diff line number Diff line change
Expand Up @@ -161,8 +161,8 @@ protected SelectionBase(

Prefix = prefix;

State = ElementState.Warning;
Warning(Resources.SelectionNodeNothingSelected, true);

ShouldDisplayPreviewCore = true;
}

Expand All @@ -183,7 +183,7 @@ protected SelectionBase(

Prefix = prefix;

State = ElementState.Warning;
Warning(Resources.SelectionNodeNothingSelected);

ShouldDisplayPreviewCore = true;

Expand Down Expand Up @@ -220,9 +220,13 @@ public override void ClearErrorsAndWarnings()
private void SetSelectionNodeState()
{
if (null == selectionResults || selectionResults.Count == 0)
{
State = ElementState.Warning;
else if (State == ElementState.Warning)
State = ElementState.Active;
}
else if (State == ElementState.Warning || State == ElementState.PersistentWarning)
{
base.ClearErrorsAndWarnings();
}
}

public bool CanBeginSelect()
Expand Down

Large diffs are not rendered by default.

0 comments on commit a7d388d

Please sign in to comment.