File tree Expand file tree Collapse file tree 1 file changed +11
-9
lines changed Expand file tree Collapse file tree 1 file changed +11
-9
lines changed Original file line number Diff line number Diff line change @@ -429,22 +429,24 @@ private void DecreaseMaxResult()
429
429
/// <param name="reQuery">Force query even when Query Text doesn't change</param>
430
430
public void ChangeQueryText ( string queryText , bool reQuery = false )
431
431
{
432
- if ( QueryText != queryText )
432
+ Application . Current . Dispatcher . Invoke ( ( ) =>
433
433
{
434
- Application . Current . Dispatcher . Invoke ( ( ) =>
434
+ if ( QueryText != queryText )
435
435
{
436
+
436
437
// re-query is done in QueryText's setter method
437
438
QueryText = queryText ;
438
439
// set to false so the subsequent set true triggers
439
440
// PropertyChanged and MoveQueryTextToEnd is called
440
441
QueryTextCursorMovedToEnd = false ;
441
- } ) ;
442
- }
443
- else if ( reQuery )
444
- {
445
- Query ( ) ;
446
- }
447
- QueryTextCursorMovedToEnd = true ;
442
+
443
+ }
444
+ else if ( reQuery )
445
+ {
446
+ Query ( ) ;
447
+ }
448
+ QueryTextCursorMovedToEnd = true ;
449
+ } ) ;
448
450
}
449
451
450
452
public bool LastQuerySelected { get ; set ; }
You can’t perform that action at this time.
0 commit comments