Fix data directory migration if only Firefox profile directory
This commit is contained in:
parent
bbfe4b92de
commit
d368c4019a
1 changed files with 2 additions and 2 deletions
|
@ -229,7 +229,7 @@ Zotero.DataDirectory = {
|
|||
let mtime = (yield OS.File.stat(dbFile)).lastModificationDate;
|
||||
Zotero.debug(`Database found at ${dbFile}, last modified ${mtime}`);
|
||||
// If custom location has a newer DB, use that
|
||||
if (useProfile && mtime > profileSubdirModTime) {
|
||||
if (!useProfile || mtime > profileSubdirModTime) {
|
||||
dataDir = nsIFile.path;
|
||||
useFirefoxProfileCustom = true;
|
||||
useProfile = false;
|
||||
|
@ -254,7 +254,7 @@ Zotero.DataDirectory = {
|
|||
let mtime = (yield OS.File.stat(dbFile)).lastModificationDate;
|
||||
Zotero.debug(`Database found at ${dbFile}, last modified ${mtime}`);
|
||||
// If newer than Zotero profile directory, use this one
|
||||
if (useProfile && mtime > profileSubdirModTime) {
|
||||
if (!useProfile || mtime > profileSubdirModTime) {
|
||||
dataDir = dir;
|
||||
useFirefoxProfile = true;
|
||||
useProfile = false;
|
||||
|
|
Loading…
Add table
Reference in a new issue