mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-08 10:44:09 -04:00
Fix #1957841 [[Enhancement] Use the same date format in context menu as in Book details panel/window](https://bugs.launchpad.net/calibre/+bug/1957841)
This commit is contained in:
parent
0cf7af69ac
commit
23fe52192b
@ -377,7 +377,7 @@ def add_item_specific_entries(menu, data, book_info, copy_menu, search_menu):
|
|||||||
lambda: QApplication.instance().clipboard().setText(v))
|
lambda: QApplication.instance().clipboard().setText(v))
|
||||||
ac = book_info.remove_item_action
|
ac = book_info.remove_item_action
|
||||||
ac.data = (field, remove_value, book_id)
|
ac.data = (field, remove_value, book_id)
|
||||||
ac.setText(_('Remove %s from this book') % escape_for_menu(value))
|
ac.setText(_('Remove %s from this book') % escape_for_menu(data.get('original_value') or value))
|
||||||
menu.addAction(ac)
|
menu.addAction(ac)
|
||||||
else:
|
else:
|
||||||
v = data.get('original_value') or data.get('value')
|
v = data.get('original_value') or data.get('value')
|
||||||
|
Loading…
x
Reference in New Issue
Block a user