mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Fix a regression that caused the edit metadata individually and convert
individually actions to use the bulk actions when multipe books are selected.
This commit is contained in:
parent
21dcb2b8b6
commit
f7b9dfe7f2
@ -25,7 +25,6 @@ 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
|
||||||
|
|
||||||
@ -55,6 +54,9 @@ 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,7 +36,6 @@ 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
|
||||||
|
|
||||||
@ -69,6 +68,8 @@ 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))
|
||||||
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