Don't prompt for master password on every startup (since 2.0.1)

This commit is contained in:
Dan Stillman 2010-03-12 05:28:11 +00:00
parent 097d2b54c9
commit 62a83e38ec

View File

@ -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