mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Allow skipping the confirm bulk reconvert dialog
When bulk converting previously converted books, calibre asks for a confirmation. Make this confirmation dialog skippable.
This commit is contained in:
parent
798eb321d8
commit
05572d975a
@ -373,9 +373,9 @@ def convert_existing(parent, db, book_ids, output_format): # {{{
|
|||||||
|
|
||||||
if already_converted_ids:
|
if already_converted_ids:
|
||||||
if not question_dialog(parent, _('Convert existing'),
|
if not question_dialog(parent, _('Convert existing'),
|
||||||
_('The following books have already been converted to %s format. '
|
_('The following books have already been converted to the %s format. '
|
||||||
'Do you wish to reconvert them?') % output_format,
|
'Do you wish to reconvert them?') % output_format.upper(),
|
||||||
'\n'.join(already_converted_titles)):
|
det_msg='\n'.join(already_converted_titles), skip_dialog_name='confirm_bulk_reconvert'):
|
||||||
book_ids = [x for x in book_ids if x not in already_converted_ids]
|
book_ids = [x for x in book_ids if x not in already_converted_ids]
|
||||||
|
|
||||||
return book_ids
|
return book_ids
|
||||||
|
Loading…
x
Reference in New Issue
Block a user