mirror of
git://github.com/kovidgoyal/calibre.git
synced 2025-12-30 22:05:59 +01:00
Simplify that
I was *probably* trying to mimic a C ternary operator ;p
This commit is contained in:
parent
a79f9b9b54
commit
43d53f8dbe
1 changed files with 1 additions and 1 deletions
|
|
@ -2705,7 +2705,7 @@ def _upload_cover(self, path, filename, metadata, filepath, upload_grayscale, di
|
|||
fpath = self.normalize_path(fpath.replace('/', os.sep))
|
||||
|
||||
# Never letterbox thumbnails, that's ugly. But for fullscreen covers, honor the setting.
|
||||
letterbox = letterbox_fs_covers if is_full_size else False
|
||||
letterbox = letterbox_fs_covers and is_full_size
|
||||
|
||||
# NOTE: Full size means we have to fit *inside* the given boundaries. Thumbnails, on the other hand, are *expanded* around those boundaries.
|
||||
# In Qt, it'd mean full-screen covers are resized using Qt::KeepAspectRatio, while thumbnails are resized using Qt::KeepAspectRatioByExpanding
|
||||
|
|
|
|||
Loading…
Reference in a new issue