mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-08-10 09:23:25 +00:00
fix(addressbook): Removed SOGoGlobalAddressBookFirstEntries (use listRequiresDot instead) and move SOGoGlobalAddressBookFirstEntriesCount to globalAddressBookFirstEntriesCount in source scope. This fixed the broken listRequiresDot in 5.10
This commit is contained in:
@@ -108,6 +108,7 @@
|
||||
_imapHostField = nil;
|
||||
_sieveHostField = nil;
|
||||
_listRequiresDot = YES;
|
||||
_globalAddressBookFirstEntriesCount = -1;
|
||||
_modulesConstraints = nil;
|
||||
}
|
||||
|
||||
@@ -170,8 +171,12 @@
|
||||
_viewURL = [[NSURL alloc] initWithString: [udSource objectForKey: @"viewURL"]];
|
||||
|
||||
dotValue = [udSource objectForKey: @"listRequiresDot"];
|
||||
if (dotValue)
|
||||
if (dotValue) {
|
||||
[self setListRequiresDot: [dotValue boolValue]];
|
||||
if ([udSource objectForKey: @"globalAddressBookFirstEntriesCount"])
|
||||
[self setGlobalAddressBookFirstEntriesCount: [[udSource objectForKey: @"globalAddressBookFirstEntriesCount"] intValue]];
|
||||
}
|
||||
|
||||
|
||||
#warning this domain code has no effect yet
|
||||
if ([sourceDomain length])
|
||||
@@ -1156,6 +1161,16 @@
|
||||
return _listRequiresDot;
|
||||
}
|
||||
|
||||
- (void) setGlobalAddressBookFirstEntriesCount: (int)value
|
||||
{
|
||||
_globalAddressBookFirstEntriesCount = value;
|
||||
}
|
||||
|
||||
- (int) globalAddressBookFirstEntriesCount
|
||||
{
|
||||
return _globalAddressBookFirstEntriesCount;
|
||||
}
|
||||
|
||||
/* card editing */
|
||||
- (void) setModifiers: (NSArray *) newModifiers
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user