File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed
Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -139,7 +139,10 @@ void FillTree()
139139 if ( SelectedNode != null || tree . Nodes . Count == 0 ) return ;
140140 var search = input . Text . Trim ( ) ;
141141 if ( search . Length == 0 )
142- tree . SelectedNode = tree . Nodes . OfType < TypeNode > ( ) . FirstOrDefault ( it => it . Model . Equals ( InClass ) ) ;
142+ {
143+ if ( InClass . Equals ( ClassModel . VoidClass ) ) tree . SelectedNode = tree . Nodes [ 0 ] ;
144+ else tree . SelectedNode = tree . Nodes . OfType < TypeNode > ( ) . FirstOrDefault ( it => it . Model . Equals ( InClass ) ) ;
145+ }
143146 else
144147 {
145148 var nodes = tree . Nodes . OfType < TreeNode > ( ) . ToList ( ) . FindAll ( it =>
@@ -273,10 +276,7 @@ protected override void OnKeyDown(KeyEventArgs e)
273276 }
274277 }
275278
276- protected override void OnFormClosing ( FormClosingEventArgs e )
277- {
278- settings . QuickOutlineSize = Size ;
279- }
279+ protected override void OnFormClosing ( FormClosingEventArgs e ) => settings . QuickOutlineSize = Size ;
280280
281281 void OnInputTextChanged ( object sender , EventArgs e ) => RefreshTree ( ) ;
282282
You can’t perform that action at this time.
0 commit comments