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