mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-10-18 01:38:12 +00:00
(web) Keep unlocalized/custom calendar categories
This commit is contained in:
1 parent
f30f107e4e
commit
3e0910d175
1 file changed
+7
-5
@@ -186,10 +186,11 @@ static SoProduct *preferencesProduct = nil;
|
||||
for (count = 0; count < max; count++)
|
||||
{
|
||||
label = [defaultCalendarCategories objectAtIndex: count];
|
||||
if ((localizedLabel = [categoryLabels objectForKey: label]))
|
||||
if (!(localizedLabel = [categoryLabels objectForKey: label]))
|
||||
{
|
||||
[filteredCalendarCategories addObject: localizedLabel];
|
||||
localizedLabel = label;
|
||||
}
|
||||
[filteredCalendarCategories addObject: localizedLabel];
|
||||
}
|
||||
|
||||
[defaults setCalendarCategories: filteredCalendarCategories];
|
||||
@@ -224,11 +225,12 @@ static SoProduct *preferencesProduct = nil;
|
||||
for (count = 0; count < max; count++)
|
||||
{
|
||||
label = [defaultCalendarCategories objectAtIndex: count];
|
||||
if ((localizedLabel = [categoryLabels objectForKey: label]))
|
||||
if (!(localizedLabel = [categoryLabels objectForKey: label]))
|
||||
{
|
||||
[filteredCalendarCategoriesColors setObject: [defaultCalendarCategoriesColors objectForKey: label]
|
||||
forKey: localizedLabel];
|
||||
localizedLabel = label;
|
||||
}
|
||||
[filteredCalendarCategoriesColors setObject: [defaultCalendarCategoriesColors objectForKey: label]
|
||||
forKey: localizedLabel];
|
||||
}
|
||||
|
||||
[defaults setCalendarCategoriesColors: filteredCalendarCategoriesColors];
|
||||
|
||||
Reference in new issue
Block a user