Vacuum database automatically on successful integrity check

Firefox does this for Places, so we might as well too.
This commit is contained in:
Dan Stillman 2017-05-29 21:25:23 -04:00
parent 6ffd7b11cb
commit e551777989

View file

@ -171,6 +171,14 @@ Zotero_Preferences.Advanced = {
return;
}
try {
yield Zotero.DB.vacuum();
}
catch (e) {
Zotero.logError(e);
ok = false;
}
}
var str = ok ? 'passed' : 'failed';