(fix) default calendar category colors
This commit is contained in:
parent
d43d31d144
commit
8074e67b84
|
@ -130,6 +130,19 @@ static SoProduct *preferencesProduct = nil;
|
|||
|
||||
[defaults setCalendarCategories: categoryLabels];
|
||||
}
|
||||
if (![defaults calendarCategoriesColors])
|
||||
{
|
||||
NSMutableDictionary *colors;
|
||||
int i;
|
||||
|
||||
categoryLabels = [defaults calendarCategories];
|
||||
colors = [NSMutableDictionary dictionaryWithCapacity: [categoryLabels count]];
|
||||
|
||||
for (i = 0; i < [categoryLabels count]; i++)
|
||||
[colors setObject: @"#aaa" forKey: [categoryLabels objectAtIndex: i]];
|
||||
|
||||
[defaults setCalendarCategoriesColors: colors];
|
||||
}
|
||||
|
||||
//
|
||||
// Default Contacts preferences
|
||||
|
|
Loading…
Reference in a new issue