File tree 1 file changed +7
-3
lines changed
src/Libraries/CoreNodeModels
1 file changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -161,7 +161,7 @@ protected SelectionBase(
161
161
162
162
Prefix = prefix ;
163
163
164
- Warning ( Resources . SelectionNodeNothingSelected ) ;
164
+ Warning ( Resources . SelectionNodeNothingSelected , true ) ;
165
165
166
166
ShouldDisplayPreviewCore = true ;
167
167
}
@@ -220,9 +220,13 @@ public override void ClearErrorsAndWarnings()
220
220
private void SetSelectionNodeState ( )
221
221
{
222
222
if ( null == selectionResults || selectionResults . Count == 0 )
223
+ {
223
224
State = ElementState . Warning ;
224
- else if ( State == ElementState . Warning )
225
- State = ElementState . Active ;
225
+ }
226
+ else if ( State == ElementState . Warning || State == ElementState . PersistentWarning )
227
+ {
228
+ base . ClearErrorsAndWarnings ( ) ;
229
+ }
226
230
}
227
231
228
232
public bool CanBeginSelect ( )
You can’t perform that action at this time.
0 commit comments