Fix handling of Web calendars

- handle Web calendars that require authentication;
- properly save the "reload on login" option;
- reload Web calendars when clicking on the reload button on top of the
  events/tasks list;
- properly activate the checkbox of new calendars (as they are enabled
  by default).

Fixes #3326
This commit is contained in:
Francis Lachapelle
2016-05-13 15:50:24 -04:00
parent 199a5f5215
commit e396e29430
11 changed files with 188 additions and 28 deletions
+4
View File
@@ -107,6 +107,10 @@
if ([o isKindOfClass: [NSNumber class]])
[calendar setSynchronize: [o boolValue]];
o = [params objectForKey: @"reloadOnLogin"];
if ([o isKindOfClass: [NSNumber class]] && [calendar isKindOfClass: [SOGoWebAppointmentFolder class]])
[(SOGoWebAppointmentFolder *) calendar setReloadOnLogin: [o boolValue]];
values = [params objectForKey: @"notifications"];
if ([values isKindOfClass: [NSDictionary class]])
{