Fix #2080628 [Saving cover to extra files doesn't update count in MDE](https://bugs.launchpad.net/calibre/+bug/2080628)

This commit is contained in:
Kovid Goyal 2024-09-13 17:21:04 +05:30
parent 1808e6118d
commit dd7f55b0d0
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -611,6 +611,7 @@ class MetadataSingleDialogBase(QDialog):
if d.cover_pixmap is not None:
self.metadata_before_fetch['cover'] = self.cover.current_val
self.cover.current_val = pixmap_to_data(d.cover_pixmap)
self.update_data_files_button()
def undo_fetch_metadata(self):
if self.metadata_before_fetch is None:
@ -636,6 +637,7 @@ class MetadataSingleDialogBase(QDialog):
if ret == QDialog.DialogCode.Accepted:
if d.cover_pixmap is not None:
self.cover.current_val = pixmap_to_data(d.cover_pixmap)
self.update_data_files_button()
# }}}