Tell connector to reinit after moving data directory
This commit is contained in:
parent
cfc7f36829
commit
ce6a0ecb01
|
@ -93,6 +93,11 @@ Zotero.IPC = new function() {
|
||||||
// translators
|
// translators
|
||||||
Zotero.initComplete();
|
Zotero.initComplete();
|
||||||
}
|
}
|
||||||
|
else if (msg == "reinit") {
|
||||||
|
if (Zotero.isConnector) {
|
||||||
|
reinit(false, true);
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -1495,6 +1495,10 @@ Components.utils.import("resource://gre/modules/osfile.jsm");
|
||||||
// Set data directory again
|
// Set data directory again
|
||||||
Zotero.debug("Using new data directory " + newDir);
|
Zotero.debug("Using new data directory " + newDir);
|
||||||
this._cacheDataDirectory(newDir);
|
this._cacheDataDirectory(newDir);
|
||||||
|
// Tell Zotero for Firefox in connector mode to reload and find the new data directory
|
||||||
|
if (this.isStandalone) {
|
||||||
|
Zotero.IPC.broadcast('reinit');
|
||||||
|
}
|
||||||
|
|
||||||
// At least the database was copied, but other things failed
|
// At least the database was copied, but other things failed
|
||||||
if (errors.length) {
|
if (errors.length) {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user