From 61649b85de0198fbb066c6903e7b5c6d6e3dc9a6 Mon Sep 17 00:00:00 2001 From: tleon Date: Sat, 18 Oct 2014 16:32:58 +0200 Subject: [PATCH] Behavior of download completed dialog --- resources/default_tweaks.py | 7 +++++++ src/calibre/gui2/actions/edit_metadata.py | 3 ++- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/resources/default_tweaks.py b/resources/default_tweaks.py index 4b468c3..957762d 100644 --- a/resources/default_tweaks.py +++ b/resources/default_tweaks.py @@ -564,3 +564,10 @@ restrict_output_formats = None # numbers. # The value can be between 50 and 99 content_server_thumbnail_compression_quality = 75 + +#: Bulk Metadata download behavior +# The default behavior of the metadata download completed dialog is to make +# the 'Yes' button the default on. If you want to make the 'review' button +# the default one, set the following parameter to True. +# This tweak needs a restart to apply. +review_downloaded_metadata = False diff --git a/src/calibre/gui2/actions/edit_metadata.py b/src/calibre/gui2/actions/edit_metadata.py index 4dad0ed..5f3c31b 100644 --- a/src/calibre/gui2/actions/edit_metadata.py +++ b/src/calibre/gui2/actions/edit_metadata.py @@ -15,6 +15,7 @@ from calibre.gui2.dialogs.metadata_bulk import MetadataBulkDialog from calibre.gui2.dialogs.confirm_delete import confirm from calibre.gui2.dialogs.device_category_editor import DeviceCategoryEditor from calibre.gui2.actions import InterfaceAction +from calibre.utils.config import tweaks from calibre.ebooks.metadata import authors_to_string from calibre.ebooks.metadata.book.base import Metadata from calibre.ebooks.metadata.opf2 import OPF, metadata_to_opf @@ -166,7 +167,7 @@ class EditMetadataAction(InterfaceAction): log_is_file=True, checkbox_msg=checkbox_msg, checkbox_checked=False, action_callback=review_apply, action_label=_('Review downloaded metadata'), - action_icon=QIcon(I('auto_author_sort.png'))) + action_icon=QIcon(I('auto_author_sort.png')),focus_action=tweaks['review_downloaded_metadata']) def apply_downloaded_metadata(self, review, payload, *args): good_ids, tdir, log_file, lm_map, failed_ids = payload -- 1.9.4.msysgit.2