From bcde11b3f4c1929788d523ae1496b481c9871792 Mon Sep 17 00:00:00 2001 From: Etienne Samson Date: Mon, 21 Jan 2013 22:31:01 +0100 Subject: [PATCH] Perform scanning on a background queue so that the GUI doesn't lock at startup. --- Quicksilver/Code-QuickStepCore/QSLibrarian.m | 38 ++++++++++---------- 1 file changed, 20 insertions(+), 18 deletions(-) diff --git a/Quicksilver/Code-QuickStepCore/QSLibrarian.m b/Quicksilver/Code-QuickStepCore/QSLibrarian.m index e43fce5d8..d9081077b 100644 --- a/Quicksilver/Code-QuickStepCore/QSLibrarian.m +++ b/Quicksilver/Code-QuickStepCore/QSLibrarian.m @@ -539,25 +539,27 @@ - (void)scanCatalogIgnoringIndexes:(BOOL)force { return; } - @autoreleasepool { - [scanTask setStatus:@"Catalog Rescan"]; - [scanTask startTask:self]; - [scanTask setProgress:-1]; - scannerCount++; - NSArray *children = [catalog deepChildrenWithGroups:NO leaves:YES disabled:NO]; - NSUInteger i; - NSUInteger c = [children count]; - for (i = 0; i