mirror of
git://github.com/kovidgoyal/calibre.git
synced 2025-12-23 16:47:47 +01:00
Also clear seach/replace history int he edit metadata dialog when using the Clear search histories button in Preferences->Searching
This commit is contained in:
parent
75b7b476c7
commit
04d2af56f7
1 changed files with 3 additions and 0 deletions
|
|
@ -245,6 +245,9 @@ def clear_histories(self, *args):
|
|||
if key.endswith('_search_history') and isinstance(val, list):
|
||||
config[key] = []
|
||||
self.gui.search.clear_history()
|
||||
from calibre.gui2.widgets import history
|
||||
for key in 'bulk_edit_search_for bulk_edit_replace_with'.split():
|
||||
history.set('lineedit_history_' + key, [])
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
||||
|
|
|
|||
Loading…
Reference in a new issue