@@ -267,7 +267,7 @@ public void AddFrames(Frame[] frames)
267
267
{
268
268
foreach ( string cp in project . AbsoluteClasspaths )
269
269
{
270
- string pathBackSlash = cp . TrimEnd ( new [ ] { Path . DirectorySeparatorChar , Path . AltDirectorySeparatorChar } ) ;
270
+ string pathBackSlash = cp . TrimEnd ( new [ ] { Path . DirectorySeparatorChar , Path . AltDirectorySeparatorChar } ) ;
271
271
pathBackSlash = pathBackSlash . IndexOf ( Path . AltDirectorySeparatorChar . ToString ( ) ) > - 1 ?
272
272
pathBackSlash + Path . AltDirectorySeparatorChar : pathBackSlash + Path . DirectorySeparatorChar ;
273
273
if ( sourceFile . getFullPath ( ) . ToString ( ) . StartsWith ( pathBackSlash ) )
@@ -278,20 +278,23 @@ public void AddFrames(Frame[] frames)
278
278
}
279
279
}
280
280
}
281
- var listItem = new ListViewItem ( new [ ] { string . Empty , title } , - 1 )
281
+ var listItem = new ListViewItem ( new [ ] { string . Empty , title } , - 1 )
282
282
{
283
- Tag = new ListItemData { Frame = item , Index = i ++ }
283
+ Tag = new ListItemData { Frame = item , Index = i ++ }
284
284
} ;
285
285
listItem . UseItemStyleForSubItems = false ;
286
286
// TODO: Apply proper theming colour
287
287
if ( ! ownFile ) listItem . SubItems [ 1 ] . ForeColor = System . Drawing . SystemColors . GrayText ;
288
288
wholeFrameStack . Add ( listItem ) ;
289
289
}
290
290
FilterResults ( ) ;
291
+ toolStripTextBoxFilter . Enabled = lv . Enabled = true ;
291
292
}
292
293
else
294
+ {
293
295
lv . Items . Clear ( ) ;
294
- toolStripTextBoxFilter . Enabled = lv . Enabled = lv . Items . Count > 0 ;
296
+ toolStripTextBoxFilter . Enabled = lv . Enabled = false ;
297
+ }
295
298
}
296
299
297
300
private void Lv_KeyDown ( object sender , KeyEventArgs e )
0 commit comments