forked from mirrors/linphone-iphone
liblinphoneTester: fix compilation
This commit is contained in:
parent
83922f2d60
commit
fb8ec27bbb
3 changed files with 4 additions and 4 deletions
|
|
@ -314,9 +314,9 @@ static UICompositeViewDescription *compositeDescription = nil;
|
|||
(debugEnabled ? NSLocalizedString(@"Disable logs", nil) : NSLocalizedString(@"Enable logs", nil));
|
||||
[alertView addButtonWithTitle:actionLog
|
||||
block:^{
|
||||
// enable / disable
|
||||
BOOL enableDebug = !debugEnabled;
|
||||
[Log enableLogs:enableDebug];
|
||||
BOOL enabled = !debugEnabled;
|
||||
[LinphoneManager.instance lpConfigSetBool:enabled forKey:@"debugenable_preference"];
|
||||
[Log enableLogs:enabled];
|
||||
}];
|
||||
|
||||
[alertView show];
|
||||
|
|
|
|||
|
|
@ -415,6 +415,7 @@ static UICompositeViewDescription *compositeDescription = nil;
|
|||
[keys addObject:@"send_logs_button"];
|
||||
[keys addObject:@"reset_logs_button"];
|
||||
[Log enableLogs:debugEnabled];
|
||||
[LinphoneManager.instance lpConfigSetBool:debugEnabled forKey:@"debugenable_preference"];
|
||||
} else if ([@"account_mandatory_advanced_preference" compare:notif.object] == NSOrderedSame) {
|
||||
removeFromHiddenKeys = [[notif.userInfo objectForKey:@"account_mandatory_advanced_preference"] boolValue];
|
||||
for (NSString *key in settingsStore->dict) {
|
||||
|
|
|
|||
|
|
@ -56,7 +56,6 @@
|
|||
}
|
||||
|
||||
+ (void)enableLogs:(BOOL)enabled {
|
||||
[LinphoneManager.instance lpConfigSetBool:enabled forKey:@"debugenable_preference"];
|
||||
linphone_core_enable_logs_with_cb((OrtpLogFunc)linphone_iphone_log_handler);
|
||||
if (enabled) {
|
||||
NSLog(@"Enabling debug logs");
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue