Fix various connector-mode issues for 5.0
Still more to fix
This commit is contained in:
parent
cdedbaccac
commit
0f7d1c7061
4 changed files with 11 additions and 7 deletions
|
@ -294,7 +294,7 @@ var Zotero_Browser = new function() {
|
||||||
* object, and updates the status of the capture icon
|
* object, and updates the status of the capture icon
|
||||||
*/
|
*/
|
||||||
var contentLoad = Zotero.Promise.coroutine(function* (event) {
|
var contentLoad = Zotero.Promise.coroutine(function* (event) {
|
||||||
if (Zotero.Schema.schemaUpdatePromise.isPending()) {
|
if (Zotero.Schema && Zotero.Schema.schemaUpdatePromise.isPending()) {
|
||||||
yield Zotero.Schema.schemaUpdatePromise;
|
yield Zotero.Schema.schemaUpdatePromise;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -448,7 +448,7 @@ var Zotero_Browser = new function() {
|
||||||
* thereof of the current page
|
* thereof of the current page
|
||||||
*/
|
*/
|
||||||
this.updateStatus = Zotero.Promise.coroutine(function* () {
|
this.updateStatus = Zotero.Promise.coroutine(function* () {
|
||||||
if (Zotero.Schema.schemaUpdatePromise.isPending()) {
|
if (Zotero.Schema && Zotero.Schema.schemaUpdatePromise.isPending()) {
|
||||||
yield Zotero.Schema.schemaUpdatePromise;
|
yield Zotero.Schema.schemaUpdatePromise;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -789,7 +789,9 @@ Components.utils.import("resource://gre/modules/osfile.jsm");
|
||||||
Zotero.getString('startupError.checkPermissions')
|
Zotero.getString('startupError.checkPermissions')
|
||||||
]);
|
]);
|
||||||
Zotero.startupError = msg;
|
Zotero.startupError = msg;
|
||||||
} else if(e.name == "NS_ERROR_STORAGE_BUSY" || e.result == 2153971713) {
|
}
|
||||||
|
// Storage busy
|
||||||
|
else if (e.message.endsWith('2153971713')) {
|
||||||
if(Zotero.isStandalone) {
|
if(Zotero.isStandalone) {
|
||||||
// Standalone should force Fx to release lock
|
// Standalone should force Fx to release lock
|
||||||
if(!haveReleasedLock && Zotero.IPC.broadcast("releaseLock")) {
|
if(!haveReleasedLock && Zotero.IPC.broadcast("releaseLock")) {
|
||||||
|
|
|
@ -372,7 +372,7 @@ var ZoteroPane = new function()
|
||||||
}
|
}
|
||||||
_madeVisible = true;
|
_madeVisible = true;
|
||||||
|
|
||||||
yield this.unserializePersist();
|
this.unserializePersist();
|
||||||
this.updateToolbarPosition();
|
this.updateToolbarPosition();
|
||||||
this.updateTagSelectorSize();
|
this.updateTagSelectorSize();
|
||||||
|
|
||||||
|
@ -4508,7 +4508,7 @@ var ZoteroPane = new function()
|
||||||
/**
|
/**
|
||||||
* Unserializes zotero-persist elements from preferences
|
* Unserializes zotero-persist elements from preferences
|
||||||
*/
|
*/
|
||||||
this.unserializePersist = Zotero.Promise.coroutine(function* () {
|
this.unserializePersist = function () {
|
||||||
_unserialized = true;
|
_unserialized = true;
|
||||||
var serializedValues = Zotero.Prefs.get("pane.persist");
|
var serializedValues = Zotero.Prefs.get("pane.persist");
|
||||||
if(!serializedValues) return;
|
if(!serializedValues) return;
|
||||||
|
@ -4533,10 +4533,10 @@ var ZoteroPane = new function()
|
||||||
if(this.itemsView) {
|
if(this.itemsView) {
|
||||||
// may not yet be initialized
|
// may not yet be initialized
|
||||||
try {
|
try {
|
||||||
yield this.itemsView.sort();
|
this.itemsView.sort();
|
||||||
} catch(e) {};
|
} catch(e) {};
|
||||||
}
|
}
|
||||||
});
|
};
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Serializes zotero-persist elements to preferences
|
* Serializes zotero-persist elements to preferences
|
||||||
|
|
|
@ -286,6 +286,8 @@ function makeZoteroContext(isConnector) {
|
||||||
subscriptLoader.loadSubScript("chrome://zotero/content/xpcom/" + xpcomFile + ".js", zContext);
|
subscriptLoader.loadSubScript("chrome://zotero/content/xpcom/" + xpcomFile + ".js", zContext);
|
||||||
}
|
}
|
||||||
catch (e) {
|
catch (e) {
|
||||||
|
dump("Error loading " + xpcomFile + ".js\n\n");
|
||||||
|
dump(e + "\n\n");
|
||||||
Components.utils.reportError("Error loading " + xpcomFile + ".js", zContext);
|
Components.utils.reportError("Error loading " + xpcomFile + ".js", zContext);
|
||||||
throw (e);
|
throw (e);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue