2
0

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:
Maarten Billemont
2013-04-17 22:00:15 -04:00
parent ee93412dd1
commit c31df49599
15 changed files with 372 additions and 360 deletions

View File

@@ -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
}