File tree Expand file tree Collapse file tree 1 file changed +15
-12
lines changed Expand file tree Collapse file tree 1 file changed +15
-12
lines changed Original file line number Diff line number Diff line change @@ -367,18 +367,21 @@ - (void)_fa_performFuzzyFiltering
367367 NSString *prefix = [self valueForKey: @" _filteringPrefix" ];
368368 // Let the original handler deal with the zero letter case
369369 if (!prefix || prefix.length == 0 ) {
370- [self ._fa_resultsStack removeAllObjects ];
371-
372- NSTimeInterval start = [NSDate timeIntervalSinceReferenceDate ];
373- [self _fa_setFilteringPrefix: prefix forceFilter: self ._fa_forceFilter];
374- if (![FASettings currentSettings ].showInlinePreview ) {
375- [self ._inlinePreviewController hideInlinePreviewWithReason: 0x0 ];
376- }
377- self.fa_filteringTime = [NSDate timeIntervalSinceReferenceDate ] - start;
378-
379- if ([FASettings currentSettings ].showTiming ) {
380- [self ._listWindowController _updateCurrentDisplayState ];
381- }
370+ dispatch_on_main (^{
371+ [self ._fa_resultsStack removeAllObjects ];
372+
373+ NSTimeInterval start = [NSDate timeIntervalSinceReferenceDate ];
374+ [self _fa_setFilteringPrefix: prefix forceFilter: self ._fa_forceFilter];
375+ if (![FASettings currentSettings ].showInlinePreview ) {
376+ [self ._inlinePreviewController hideInlinePreviewWithReason: 0x0 ];
377+ }
378+ self.fa_filteringTime = [NSDate timeIntervalSinceReferenceDate ] - start;
379+
380+ if ([FASettings currentSettings ].showTiming ) {
381+ [self ._listWindowController _updateCurrentDisplayState ];
382+ }
383+
384+ });
382385 return ;
383386 }
384387
You can’t perform that action at this time.
0 commit comments