2
0

Ensure alerts are triggered on main thread.

This commit is contained in:
Maarten Billemont
2020-03-05 11:29:10 -05:00
parent 9c3e272849
commit ee16c4a66d
9 changed files with 148 additions and 135 deletions

View File

@@ -548,11 +548,8 @@ PearlAssociatedObjectProperty( NSNumber*, StoreCorrupted, storeCorrupted );
do {
if ([MPAppDelegate_Shared managedObjectContextPerformBlockAndWait:^(NSManagedObjectContext *context) {
NSError *error = [self importSites:importData askImportPassword:importPassword askUserPassword:userPassword
saveInContext:context];
PearlMainQueue( ^{
resultBlock( error );
} );
resultBlock( [self importSites:importData askImportPassword:importPassword askUserPassword:userPassword
saveInContext:context] );
}])
break;
usleep( (useconds_t)(USEC_PER_SEC * 0.2) );