mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-07 10:14:46 -04: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
@ -245,6 +245,9 @@ class ConfigWidget(ConfigWidgetBase, Ui_Form):
|
||||
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…
x
Reference in New Issue
Block a user