From 62a83e38ec59aaa6fdf4e00d80ffb6d2fbf5fee4 Mon Sep 17 00:00:00 2001 From: Dan Stillman Date: Fri, 12 Mar 2010 05:28:11 +0000 Subject: [PATCH] Don't prompt for master password on every startup (since 2.0.1) --- chrome/content/zotero/overlay.js | 18 +++++++++++------- 1 file changed, 11 insertions(+), 7 deletions(-) diff --git a/chrome/content/zotero/overlay.js b/chrome/content/zotero/overlay.js index 2fa0718c3..c97526aaf 100644 --- a/chrome/content/zotero/overlay.js +++ b/chrome/content/zotero/overlay.js @@ -186,14 +186,18 @@ var ZoteroPane = new function() // -- this way the page won't be displayed when they sync their DB to // another profile or if the DB is initialized erroneously (e.g. while // switching data directory locations) - else if (Zotero.Prefs.get('firstRun2') - && (Zotero.Schema.dbInitialized || !Zotero.Sync.Server.enabled)) { - setTimeout(function () { - var url = "http://zotero.org/start"; - gBrowser.selectedTab = gBrowser.addTab(url); - }, 400); + else if (Zotero.Prefs.get('firstRun2')) { + if (Zotero.Schema.dbInitialized || !Zotero.Sync.Server.enabled) { + setTimeout(function () { + var url = "http://zotero.org/start"; + gBrowser.selectedTab = gBrowser.addTab(url); + }, 400); + } Zotero.Prefs.set('firstRun2', false); - Zotero.Prefs.clear('firstRun'); + try { + Zotero.Prefs.clear('firstRun'); + } + catch (e) {} } // Hide sync debugging menu by default