mirror of
git://github.com/kovidgoyal/calibre.git
synced 2026-04-23 12:53:13 +02:00
...
This commit is contained in:
commit
40abffe807
1 changed files with 9 additions and 0 deletions
|
|
@ -268,6 +268,15 @@ def get_next_highlighted_id(self, current_row, forward):
|
|||
return None
|
||||
return self.get_current_highlighted_id()
|
||||
|
||||
def highlight_ids(self, ids_to_highlight):
|
||||
self.ids_to_highlight = ids_to_highlight
|
||||
self.ids_to_highlight_set = set(self.ids_to_highlight)
|
||||
if self.ids_to_highlight:
|
||||
self.current_highlighted_idx = 0
|
||||
else:
|
||||
self.current_highlighted_idx = None
|
||||
self.reset()
|
||||
|
||||
def search(self, text, reset=True):
|
||||
try:
|
||||
if self.highlight_only:
|
||||
|
|
|
|||
Loading…
Reference in a new issue