Adding r1658, opening Quick Start Guide on first run, to rc3 tag for rebuild
This commit is contained in:
parent
62ada82412
commit
586cc777bd
|
@ -175,6 +175,16 @@ var ZoteroPane = new function()
|
||||||
menu.addEventListener("popupshowing", ZoteroPane.contextPopupShowing, false);
|
menu.addEventListener("popupshowing", ZoteroPane.contextPopupShowing, false);
|
||||||
|
|
||||||
Zotero.Keys.windowInit(document);
|
Zotero.Keys.windowInit(document);
|
||||||
|
|
||||||
|
// If the database was initialized and Zotero hasn't been run before
|
||||||
|
// in this profile, display the Quick Start Guide -- this way the guide
|
||||||
|
// won't be displayed they sync their DB to another profile or if
|
||||||
|
// they the DB is initialized erroneously (e.g. while switching data
|
||||||
|
// directory locations)
|
||||||
|
if (Zotero.Schema.dbInitialized && Zotero.Prefs.get('firstRun')) {
|
||||||
|
gBrowser.selectedTab = gBrowser.addTab('http://www.zotero.org/documentation/quick_start_guide');
|
||||||
|
Zotero.Prefs.set('extensions.zotero.firstRun', false);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -27,6 +27,7 @@ Zotero.Schema = new function(){
|
||||||
this.updateScrapersRemote = updateScrapersRemote;
|
this.updateScrapersRemote = updateScrapersRemote;
|
||||||
this.stopRepositoryTimer = stopRepositoryTimer;
|
this.stopRepositoryTimer = stopRepositoryTimer;
|
||||||
|
|
||||||
|
this.dbInitialized = false;
|
||||||
this.upgradeFinished = false;
|
this.upgradeFinished = false;
|
||||||
this.goToChangeLog = false;
|
this.goToChangeLog = false;
|
||||||
|
|
||||||
|
@ -37,6 +38,8 @@ Zotero.Schema = new function(){
|
||||||
|
|
||||||
var _fulltextItemWordsCache = [];
|
var _fulltextItemWordsCache = [];
|
||||||
|
|
||||||
|
var self = this;
|
||||||
|
|
||||||
function userDataUpgradeRequired() {
|
function userDataUpgradeRequired() {
|
||||||
var dbVersion = _getDBVersion('userdata');
|
var dbVersion = _getDBVersion('userdata');
|
||||||
var schemaVersion = _getSchemaSQLVersion('userdata');
|
var schemaVersion = _getSchemaSQLVersion('userdata');
|
||||||
|
@ -467,6 +470,8 @@ Zotero.Schema = new function(){
|
||||||
+ "\n\n" + Zotero.getString('install.quickStartGuide.message.thanks');
|
+ "\n\n" + Zotero.getString('install.quickStartGuide.message.thanks');
|
||||||
Zotero.DB.query(sql, msg);
|
Zotero.DB.query(sql, msg);
|
||||||
Zotero.DB.commitTransaction();
|
Zotero.DB.commitTransaction();
|
||||||
|
|
||||||
|
self.dbInitialized = true;
|
||||||
}
|
}
|
||||||
catch(e){
|
catch(e){
|
||||||
Zotero.debug(e, 1);
|
Zotero.debug(e, 1);
|
||||||
|
|
|
@ -1,5 +1,7 @@
|
||||||
// These are DEFAULT prefs for the INSTALL. You will have to reinstall the extension to see differences!
|
// These are DEFAULT prefs for the INSTALL. You will have to reinstall the extension to see differences!
|
||||||
|
|
||||||
|
pref("extensions.zotero.firstRun", true);
|
||||||
|
|
||||||
pref("extensions.zotero.useDataDir", false);
|
pref("extensions.zotero.useDataDir", false);
|
||||||
pref("extensions.zotero.dataDir", '');
|
pref("extensions.zotero.dataDir", '');
|
||||||
pref("extensions.zotero.lastDataDir", '');
|
pref("extensions.zotero.lastDataDir", '');
|
||||||
|
|
Loading…
Reference in New Issue
Block a user