From 5f89402ce634869d2acaa7c4fa2a5629fcad320d Mon Sep 17 00:00:00 2001 From: Simon Kornblith Date: Fri, 27 Jan 2012 05:59:03 -0500 Subject: [PATCH] Refuse to open preferences in connector mode and close preferences when Zotero Standalone is opened --- chrome/content/zotero/preferences/preferences.js | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/chrome/content/zotero/preferences/preferences.js b/chrome/content/zotero/preferences/preferences.js index 2ff53d787..b796dcc4f 100644 --- a/chrome/content/zotero/preferences/preferences.js +++ b/chrome/content/zotero/preferences/preferences.js @@ -74,6 +74,16 @@ var Zotero_Preferences = { function init() { + if(Zotero.isConnector) { + Zotero.activateStandalone(); + window.close(); + return; + } + + observerService.addObserver(function() { + if(Zotero.isConnector) window.close(); + }, "zotero-reloaded", false); + // Display the appropriate modifier keys for the platform var rows = document.getElementById('zotero-prefpane-keys').getElementsByTagName('row'); for (var i=0; i