зеркало из https://github.com/mozilla/gecko-dev.git
move startup code to happen after the UI comes up
This commit is contained in:
Родитель
07b236f5a3
Коммит
85ae9b1f38
|
@ -51,9 +51,9 @@ WeaveService.prototype = {
|
|||
case "app-startup":
|
||||
let os = Components.classes["@mozilla.org/observer-service;1"].
|
||||
getService(Components.interfaces.nsIObserverService);
|
||||
os.addObserver(this, "profile-after-change", true);
|
||||
os.addObserver(this, "sessionstore-windows-restored", true);
|
||||
break;
|
||||
case "profile-after-change":
|
||||
case "sessionstore-windows-restored":
|
||||
Components.utils.import("resource://weave/service.js");
|
||||
Weave.Service.onStartup();
|
||||
break;
|
||||
|
|
Загрузка…
Ссылка в новой задаче