Skip to content

Commit

Permalink
Add a tooltip to Replace All
Browse files Browse the repository at this point in the history
  • Loading branch information
kovidgoyal committed Nov 24, 2024
1 parent 3c0bbde commit 149ccef
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/calibre/gui2/tweak_book/search.py
Original file line number Diff line number Diff line change
Expand Up @@ -328,6 +328,8 @@ def __init__(self, parent=None):
self.rfb = rfb = PushButton(_('Replace a&nd Find'), 'replace-find', self)
self.rb = rb = PushButton(_('Re&place'), 'replace', self)
self.rab = rab = PushButton(_('Replace &all'), 'replace-all', self)
rab.setToolTip(_('Replace all occurrences, ignoring wrap and current position.'))

l.addWidget(fb, 0, 2)
l.addWidget(rfb, 0, 3)
l.addWidget(rb, 1, 2)
Expand Down Expand Up @@ -1423,7 +1425,7 @@ def run_search(
if isinstance(searches, dict):
searches = [searches]

editor, where, files, do_all, marked = initialize_search_request(searches[0], action, current_editor, current_editor_name, searchable_names)
editor, where, files, do_all_, marked = initialize_search_request(searches[0], action, current_editor, current_editor_name, searchable_names)
wrap = searches[0]['wrap']

errfind = searches[0]['find']
Expand Down

0 comments on commit 149ccef

Please sign in to comment.