From c54af7a5ae6fbe201cc2d59db24050abf754e8b6 Mon Sep 17 00:00:00 2001 From: Dan Stillman Date: Mon, 5 Dec 2016 05:17:03 -0500 Subject: [PATCH] Remove redundant _addToolbarIcon() calls at startup --- chrome/content/zotero/xpcom/zotero.js | 5 ----- 1 file changed, 5 deletions(-) diff --git a/chrome/content/zotero/xpcom/zotero.js b/chrome/content/zotero/xpcom/zotero.js index 0faf364952..a9ba161d69 100644 --- a/chrome/content/zotero/xpcom/zotero.js +++ b/chrome/content/zotero/xpcom/zotero.js @@ -310,7 +310,6 @@ Components.utils.import("resource://gre/modules/osfile.jsm"); Zotero.DataDirectory.choose(); } } - _addToolbarIcon(); return; } // DEBUG: handle more startup errors @@ -348,7 +347,6 @@ Components.utils.import("resource://gre/modules/osfile.jsm"); ]); Zotero.startupError = msg; Zotero.logError(e); - _addToolbarIcon(); return false; } throw (e); @@ -392,7 +390,6 @@ Components.utils.import("resource://gre/modules/osfile.jsm"); return _initFull() .then(function (success) { if (!success) { - _addToolbarIcon(); return false; } @@ -416,8 +413,6 @@ Components.utils.import("resource://gre/modules/osfile.jsm"); this.initializationDeferred.resolve(); if(Zotero.isConnector) { - _addToolbarIcon(); - Zotero.Repo.init(); Zotero.locked = false; }