mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Make the toggle search highlighting re-run the last search.
This commit is contained in:
parent
b4d098bc25
commit
1af2d39540
@ -374,6 +374,8 @@ class SearchBoxMixin(object): # {{{
|
||||
def highlight_only_clicked(self, state):
|
||||
config['highlight_search_matches'] = not config['highlight_search_matches']
|
||||
self.set_highlight_only_button_icon()
|
||||
self.search.do_search()
|
||||
self.focus_to_library()
|
||||
|
||||
def set_highlight_only_button_icon(self):
|
||||
if config['highlight_search_matches']:
|
||||
|
Loading…
x
Reference in New Issue
Block a user