From 665d59215d8082ce39a4b6dc7e06908b9207ed3e Mon Sep 17 00:00:00 2001 From: Simon Kornblith Date: Wed, 17 Aug 2011 22:17:33 +0000 Subject: [PATCH] Allow user to pin normal tab --- chrome/content/zotero/overlay.js | 2 +- chrome/content/zotero/tab.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/chrome/content/zotero/overlay.js b/chrome/content/zotero/overlay.js index 0bf826674..10024536b 100644 --- a/chrome/content/zotero/overlay.js +++ b/chrome/content/zotero/overlay.js @@ -63,7 +63,7 @@ var ZoteroOverlay = new function() // load Zotero as a tab, if it isn't loading by default ZoteroOverlay.loadZoteroTab(true); } - } else { + } else if(showInPref === 1) { // close Zotero as a tab, in case it was pinned var zoteroTab = ZoteroOverlay.findZoteroTab(); if(zoteroTab) gBrowser.removeTab(zoteroTab); diff --git a/chrome/content/zotero/tab.js b/chrome/content/zotero/tab.js index a1c10df4b..79a2be887 100644 --- a/chrome/content/zotero/tab.js +++ b/chrome/content/zotero/tab.js @@ -83,7 +83,7 @@ var ZoteroTab = new function() this.containerWindow.gBrowser.tabContainer.addEventListener("TabSelect", listener, false); } - if(Zotero && Zotero.isFx4) { + if(Zotero && Zotero.isFx4 && Zotero.Prefs.get("showIn") == 3) { // on Fx 4, add an event listener so the pinned tab isn't restored on close var pinnedTabCloser = function() { try {