forked from mirrors/linphone-iphone
LinphoneManager: migrate wizard section of 2.X.Y versions to assistant section of 3.10.0
This commit is contained in:
parent
5041ef3882
commit
7513b95494
1 changed files with 13 additions and 0 deletions
|
|
@ -525,6 +525,17 @@ exit_dbmigration:
|
|||
[self lpConfigSetBool:TRUE forKey:@"file_transfer_migration_done"];
|
||||
}
|
||||
}
|
||||
|
||||
static void migrateWizardToAssistant(const char *entry, void *user_data) {
|
||||
LinphoneManager *thiz = (__bridge LinphoneManager *)(user_data);
|
||||
NSString *key = [NSString stringWithUTF8String:entry];
|
||||
[thiz lpConfigSetString:[thiz lpConfigStringForKey:key inSection:@"wizard"] forKey:key inSection:@"assistant"];
|
||||
}
|
||||
|
||||
- (void)migrationFromVersion2To3 {
|
||||
lp_config_for_each_entry(configDb, "wizard", migrateWizardToAssistant, (__bridge void *)(self));
|
||||
}
|
||||
|
||||
#pragma mark - Linphone Core Functions
|
||||
|
||||
+ (LinphoneCore *)getLc {
|
||||
|
|
@ -1339,6 +1350,8 @@ static LinphoneCoreVTable linphonec_vtable = {
|
|||
|
||||
[self migrationLinphoneSettings];
|
||||
|
||||
[self migrationFromVersion2To3];
|
||||
|
||||
[self setupNetworkReachabilityCallback];
|
||||
|
||||
NSString *path = [LinphoneManager bundleFile:@"nowebcamCIF.jpg"];
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue