Reduce computation when fuzzy search disabled

Respect the fuzzy search preference again to stop computing the fuzzy results when it is not enabled
This commit is contained in:
Jan Koll 2025-06-26 23:05:48 +02:00
parent bf6eae8bde
commit 7744974abb

View file

@ -76,7 +76,7 @@ class AppFilter(
appsSecondary.add(item);
} else if (itemLabel.contains(normalizedQuery)) {
appsSecondary.add(item)
} else {
} else if (LauncherPreferences.functionality().searchFuzzy()) {
if (isSubsequent(itemLabel, normalizedQuery)) {
subsequentResult.add(item)
}