mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
pep8
This commit is contained in:
parent
b0f30ce66a
commit
b5c70f1b9b
@ -332,7 +332,8 @@ class MetadataSingleDialogBase(ResizableDialog):
|
||||
|
||||
def cover_from_format(self, *args):
|
||||
ext = self.formats_manager.get_selected_format()
|
||||
if ext is None: return
|
||||
if ext is None:
|
||||
return
|
||||
if ext == 'pdf':
|
||||
return self.get_pdf_cover()
|
||||
try:
|
||||
@ -455,7 +456,6 @@ class MetadataSingleDialogBase(ResizableDialog):
|
||||
if d.cover_pixmap is not None:
|
||||
self.cover.current_val = pixmap_to_data(d.cover_pixmap)
|
||||
|
||||
|
||||
# }}}
|
||||
|
||||
def apply_changes(self):
|
||||
|
Loading…
x
Reference in New Issue
Block a user