Co-authored-by: Mizaki <jinxybob@hotmail.com>
This commit is contained in:
Timmy Welch 2022-07-04 15:53:44 -07:00
parent 68efcc74fb
commit 6eb5fa7ac7
2 changed files with 2 additions and 2 deletions

View File

@ -777,7 +777,7 @@ class ComicVineTalker:
# This async version requires the issue page url to be provided!
self.issue_id = issue_id
url_list = self.fetch_cached_alternate_cover_urls(issue_id)
if url_list is not None:
if url_list:
ComicVineTalker.alt_url_list_fetch_complete(url_list)
return

View File

@ -215,7 +215,7 @@ class CoverImageWidget(QtWidgets.QWidget):
comic_vine.async_fetch_alternate_cover_urls(utils.xlate(self.issue_id), cast(str, issue_page_url))
def alt_cover_url_list_fetch_complete(self, url_list: list[str]) -> None:
if len(url_list) > 0:
if url_list:
self.url_list.extend(url_list)
self.imageCount = len(self.url_list)
self.update_controls()