Check for lost legacy data directory after migration
The check only does anything if we're using the default location, and otherwise if we migrate the wrong directory (say, because somebody opened Standalone 4.0 before upgrading to 5.0) we won't prompt until the next restart.
This commit is contained in:
parent
921b21c3e1
commit
4a6922ba48
1 changed files with 5 additions and 5 deletions
|
@ -391,17 +391,17 @@ Services.scriptloader.loadSubScript("resource://zotero/polyfill.js");
|
|||
|
||||
if (!Zotero.isConnector) {
|
||||
if (!this.forceDataDir) {
|
||||
yield Zotero.DataDirectory.checkForLostLegacy();
|
||||
if (this.restarting) {
|
||||
return;
|
||||
}
|
||||
|
||||
yield Zotero.DataDirectory.checkForMigration(
|
||||
dataDir, Zotero.DataDirectory.defaultDir
|
||||
);
|
||||
if (this.skipLoading) {
|
||||
return;
|
||||
}
|
||||
|
||||
yield Zotero.DataDirectory.checkForLostLegacy();
|
||||
if (this.restarting) {
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
// Make sure data directory isn't in Dropbox, etc.
|
||||
|
|
Loading…
Reference in a new issue