search: Don't run a full search for equal terms
Due to the timeout on the search entry, it's possible for a very quick edit to the entry to launch a subsearch on the same search string. https://bugzilla.gnome.org/show_bug.cgi?id=693937
This commit is contained in:
parent
b292bba092
commit
87495575bc
@ -66,6 +66,8 @@ const SearchSystem = new Lang.Class({
|
||||
|
||||
let searchString = terms.join(' ');
|
||||
let previousSearchString = this._previousTerms.join(' ');
|
||||
if (searchString == previousSearchString)
|
||||
return;
|
||||
|
||||
let isSubSearch = false;
|
||||
if (this._previousTerms.length > 0)
|
||||
|
Loading…
Reference in New Issue
Block a user