activeUser refactor, tool tip hiding and dismiss when logout.
[UPDATED] Made activeUser access follow same pattern as activeElement which makes it more clear what the thread model is like. [FIXED] Save after update of all elements. [UPDATED] Tool tips hidden in IB now; makes it less cluttered. [FIXED] Dismissing view controllers when logging out.
This commit is contained in:
@@ -73,11 +73,8 @@ static NSDictionary *keyQuery(MPUserEntity *user) {
|
||||
if (self.key)
|
||||
self.key = nil;
|
||||
|
||||
if (self.activeUser) {
|
||||
self.activeUser = nil;
|
||||
[[NSNotificationCenter defaultCenter] postNotificationName:MPSignedOutNotification object:self userInfo:
|
||||
@{@"animated": @(animated)}];
|
||||
}
|
||||
self.activeUser = nil;
|
||||
[[NSNotificationCenter defaultCenter] postNotificationName:MPSignedOutNotification object:self userInfo:@{@"animated": @(animated)}];
|
||||
}
|
||||
|
||||
- (BOOL)signInAsUser:(MPUserEntity *)user usingMasterPassword:(NSString *)password {
|
||||
@@ -235,7 +232,7 @@ static NSDictionary *keyQuery(MPUserEntity *user) {
|
||||
[moc saveToStore];
|
||||
|
||||
#ifdef PEARL_UIKIT
|
||||
[activityAlert cancelAlert];
|
||||
[activityAlert cancelAlertAnimated:YES];
|
||||
#endif
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user