mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-05-09 21:45:26 +00:00
(fix) default calendar category colors
This commit is contained in:
committed by
Francis Lachapelle
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
|
||||
|
||||
Reference in New Issue
Block a user