Tell connector to reinit after moving data directory
This commit is contained in:
parent
cfc7f36829
commit
ce6a0ecb01
2 changed files with 9 additions and 0 deletions
|
@ -93,6 +93,11 @@ Zotero.IPC = new function() {
|
|||
// translators
|
||||
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
|
||||
Zotero.debug("Using new data directory " + 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
|
||||
if (errors.length) {
|
||||
|
|
Loading…
Add table
Reference in a new issue