mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Fix #1859209 [[Enhancement] Remove separator and add shortcut to menu](https://bugs.launchpad.net/calibre/+bug/1859209)
This commit is contained in:
parent
29a4596270
commit
6b5b742cda
@ -25,6 +25,7 @@ class ConvertAction(InterfaceAction):
|
|||||||
dont_add_to = frozenset(('context-menu-device',))
|
dont_add_to = frozenset(('context-menu-device',))
|
||||||
action_type = 'current'
|
action_type = 'current'
|
||||||
action_add_menu = True
|
action_add_menu = True
|
||||||
|
action_menu_clone_qaction = _('Convert individually')
|
||||||
|
|
||||||
accepts_drops = True
|
accepts_drops = True
|
||||||
|
|
||||||
@ -54,9 +55,6 @@ class ConvertAction(InterfaceAction):
|
|||||||
def genesis(self):
|
def genesis(self):
|
||||||
m = self.convert_menu = self.qaction.menu()
|
m = self.convert_menu = self.qaction.menu()
|
||||||
cm = partial(self.create_menu_action, self.convert_menu)
|
cm = partial(self.create_menu_action, self.convert_menu)
|
||||||
cm('convert-individual', _('Convert individually'),
|
|
||||||
icon=self.qaction.icon(), triggered=partial(self.convert_ebook,
|
|
||||||
False, bulk=False))
|
|
||||||
cm('convert-bulk', _('Bulk convert'),
|
cm('convert-bulk', _('Bulk convert'),
|
||||||
triggered=partial(self.convert_ebook, False, bulk=True))
|
triggered=partial(self.convert_ebook, False, bulk=True))
|
||||||
m.addSeparator()
|
m.addSeparator()
|
||||||
|
@ -36,6 +36,7 @@ class EditMetadataAction(InterfaceAction):
|
|||||||
action_spec = (_('Edit metadata'), 'edit_input.png', _('Change the title/author/cover etc. of books'), _('E'))
|
action_spec = (_('Edit metadata'), 'edit_input.png', _('Change the title/author/cover etc. of books'), _('E'))
|
||||||
action_type = 'current'
|
action_type = 'current'
|
||||||
action_add_menu = True
|
action_add_menu = True
|
||||||
|
action_menu_clone_qaction = _('Edit metadata individually')
|
||||||
|
|
||||||
accepts_drops = True
|
accepts_drops = True
|
||||||
|
|
||||||
@ -68,9 +69,6 @@ class EditMetadataAction(InterfaceAction):
|
|||||||
def genesis(self):
|
def genesis(self):
|
||||||
md = self.qaction.menu()
|
md = self.qaction.menu()
|
||||||
cm = partial(self.create_menu_action, md)
|
cm = partial(self.create_menu_action, md)
|
||||||
cm('individual', _('Edit metadata individually'), icon=self.qaction.icon(),
|
|
||||||
triggered=partial(self.edit_metadata, False, bulk=False))
|
|
||||||
md.addSeparator()
|
|
||||||
cm('bulk', _('Edit metadata in bulk'),
|
cm('bulk', _('Edit metadata in bulk'),
|
||||||
triggered=partial(self.edit_metadata, False, bulk=True))
|
triggered=partial(self.edit_metadata, False, bulk=True))
|
||||||
md.addSeparator()
|
md.addSeparator()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user