mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Content server viewer: Fix CPU consumption when searching even after all matches are found
This commit is contained in:
parent
7d9cbd81b8
commit
ad6252ac41
@ -182,7 +182,6 @@ def search_in_text_of(name):
|
|||||||
|
|
||||||
|
|
||||||
def queue_next_spine_item(spine_idx, allow_current_name):
|
def queue_next_spine_item(spine_idx, allow_current_name):
|
||||||
spine_idx %= wc.current_book.spine.length
|
|
||||||
name = wc.current_book.spine[spine_idx]
|
name = wc.current_book.spine[spine_idx]
|
||||||
if not name or (not allow_current_name and name is wc.current_query.current_name):
|
if not name or (not allow_current_name and name is wc.current_query.current_name):
|
||||||
send_search_complete()
|
send_search_complete()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user