Skip to content

Commit f529a6e

Browse files
committed
search: Fix regression in description searches.
Description was taking forever since 36eba60. Without the for_search argument, it was havi ng to wait for html-to-text conversion.
1 parent 418d58a commit f529a6e

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

usr/lib/linuxmint/mintinstall/mintinstall.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2301,6 +2301,10 @@ def go_back_action(self):
23012301
self.task_cancellable.cancel()
23022302
self.task_cancellable = None
23032303

2304+
if self.search_idle_timer > 0:
2305+
GLib.source_remove(self.search_idle_timer)
2306+
self.search_idle_timer = 0
2307+
23042308
# If we have a task, we're viewing a package and it's been 'loaded' fully.
23052309
# Cancel it directly.
23062310
elif self.current_task:
@@ -2491,7 +2495,7 @@ def idle_search_one_package(pkginfos):
24912495
is_match = True
24922496
pkginfo.search_tier = 100
24932497
break
2494-
if(search_in_description and termsUpper in self.installer.get_description(pkginfo).upper()):
2498+
if(search_in_description and termsUpper in self.installer.get_description(pkginfo, for_search=True).upper()):
24952499
is_match = True
24962500
pkginfo.search_tier = 200
24972501
break

0 commit comments

Comments
 (0)