On a fresh thunderbird profile I find annoying (and confusing) that
lightning creates a default local calendar (and marks it as the default
one).
The following hack avoids it, maybe a proper way of coding would be
to make the hack conditional on the presence of the integrator.

--- 

diff --unified --recursive 
calendar-save/content/calendar/calendar-management.js 
calendar/content/calendar/calendar-management.js
--- calendar-save/content/calendar/calendar-management.js       2010-06-10 
18:20:46.000000000 +0200
+++ calendar/content/calendar/calendar-management.js    2011-03-02 
14:52:24.281250000 +0100
@@ -96,12 +96,12 @@
 function initHomeCalendar() {
     let calMgr = cal.getCalendarManager();
     let composite = getCompositeCalendar();
-    let url = makeURL("moz-storage-calendar://");
-    let homeCalendar = calMgr.createCalendar("storage", url);
-    homeCalendar.name = calGetString("calendar", "homeCalendarName");
-    calMgr.registerCalendar(homeCalendar);
-    cal.setPref("calendar.list.sortOrder", homeCalendar.id);
-    composite.addCalendar(homeCalendar);
+    //let url = makeURL("moz-storage-calendar://");
+    //let homeCalendar = calMgr.createCalendar("storage", url);
+    //homeCalendar.name = calGetString("calendar", "homeCalendarName");
+    //calMgr.registerCalendar(homeCalendar);
+    //cal.setPref("calendar.list.sortOrder", homeCalendar.id);
+    //composite.addCalendar(homeCalendar);
 
     // Wrapping this in a try/catch block, as if any of the migration code
     // fails, the app may not load.
@@ -113,7 +113,7 @@
         }
     }
 
-    return homeCalendar;
+    //return homeCalendar;
 }
 
 /**



-- 
Luca Olivetti
Wetron Automatización S.A. http://www.wetron.es/
Tel. +34 93 5883004 (Ext.133)  Fax +34 93 5883007
-- 
[email protected]
https://inverse.ca/sogo/lists

Reply via email to