Clear lastViewedFolder pref when resetting DB during tests
This commit is contained in:
parent
3905c98f93
commit
6b0be91bf4
|
@ -497,6 +497,8 @@ var getTempDirectory = Zotero.Promise.coroutine(function* getTempDirectory() {
|
||||||
* any that were set at startup
|
* any that were set at startup
|
||||||
*/
|
*/
|
||||||
function resetDB(options = {}) {
|
function resetDB(options = {}) {
|
||||||
|
Zotero.Prefs.clear('lastViewedFolder')
|
||||||
|
|
||||||
if (options.thisArg) {
|
if (options.thisArg) {
|
||||||
options.thisArg.timeout(60000);
|
options.thisArg.timeout(60000);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user