Don't search child items in "Title, Creator, Year" mode
They can't match, so there's no need to include them. This should speed up "Title, Creator, Year" searches.
This commit is contained in:
parent
8fd83795e8
commit
4290f26d7c
1 changed files with 4 additions and 0 deletions
|
@ -355,6 +355,10 @@ Zotero.CollectionTreeRow.prototype.getSearchObject = Zotero.Promise.coroutine(fu
|
|||
if (this.isTrash()) {
|
||||
s2.addCondition('deleted', 'true');
|
||||
}
|
||||
// Don't search child items in "Title, Creator, Year" mode
|
||||
if (Zotero.Prefs.get('search.quicksearch-mode') == 'titleCreatorYear') {
|
||||
includeScopeChildren = false;
|
||||
}
|
||||
s2.setScope(s, includeScopeChildren);
|
||||
|
||||
if (this.searchText) {
|
||||
|
|
Loading…
Reference in a new issue