Changeset 1084

Show
Ignore:
Timestamp:
2008-09-10 06:09:09 (2 months ago)
Author:
MaierMan
Message:
  • Mediator as module
  • Mediator now handles songbird correctly
  • showNotice() in Mediator
  • Notice fixes

Why, oh why, do I always commit only chrome :p

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/components/migrationService.js

    r1049 r1084  
    6969                                this._execute(['Prefs', 'DropDowns', 'Filters', 'Remove']); 
    7070                        } 
    71                         if (DTA.compareversion(lastVersion, "1.0.1") < 0) { 
     71                        if (DTA.compareVersion(lastVersion, "1.0.1") < 0) { 
    7272                                this._execute(['ResetMaxConnections']); 
    7373                        }                        
     
    7676        params.SetNumberStrings(1); 
    7777        params.SetString(0, DTA.VERSION); 
    78         Components.classes["@mozilla.org/embedcomp/window-watcher;1"] 
    79                                 .getService(Components.interfaces.nsIWindowWatcher) 
    80                 .openWindow( 
    81                         null, 
    82                         "chrome://dta/content/about/notice.xul", 
    83                         "_blank", 
    84                         "chrome,centerscreen,all,alwaysRaised,dialog,modal", 
    85                         params 
    86                 );                       
     78        let mediator = {}; 
     79        Components.utils.import('resource://dta/mediator.jsm', mediator); 
     80        mediator.showNotice(null, params);               
    8781                } 
    8882                catch(ex) {