2
0

Delegate main-thread activity on the main thread.

This commit is contained in:
Maarten Billemont 2020-04-06 19:24:46 -04:00
parent 340044e945
commit d564afe3ec

View File

@ -699,9 +699,11 @@ referenceSizeForFooterInSection:(NSInteger)section {
} ); } );
PearlAddNotificationObserver( NSPersistentStoreCoordinatorStoresDidChangeNotification, [MPiOSAppDelegate get].storeCoordinator, nil, PearlAddNotificationObserver( NSPersistentStoreCoordinatorStoresDidChangeNotification, [MPiOSAppDelegate get].storeCoordinator, nil,
^(MPUsersViewController *self, NSNotification *note) { ^(MPUsersViewController *self, NSNotification *note) {
PearlMainQueue( ^{
[self registerObservers]; [self registerObservers];
[self reloadUsers]; [self reloadUsers];
} ); } );
} );
} }
- (void)reloadUsers { - (void)reloadUsers {