Add a “last app completed launch” version.

// FREEBIE
This commit is contained in:
Matthew Chen 2017-06-16 10:52:36 -04:00
parent cf3101226b
commit f9fcbad1aa
1 changed files with 3 additions and 1 deletions

View File

@ -197,7 +197,7 @@ static NSString *const kURLHostVerifyPrefix = @"verify";
[[UIStoryboard storyboardWithName:@"Launch Screen" bundle:nil] instantiateInitialViewController];
BOOL shouldShowUpgradeLabel = NO;
NSString *previousVersion = AppVersion.instance.lastAppVersion;
NSString *previousVersion = AppVersion.instance.lastCompletedLaunchAppVersion;
// We added a number of database views in v2.13.0.
if ([VersionMigrations isVersion:previousVersion atLeast:@"2.0.0" andLessThan:@"2.13.0"]) {
shouldShowUpgradeLabel = YES;
@ -735,6 +735,8 @@ static NSString *const kURLHostVerifyPrefix = @"verify";
{
DDLogInfo(@"databaseViewRegistrationComplete");
[AppVersion.instance appLaunchDidComplete];
[self ensureRootViewController];
}