mirror of
https://github.com/spalencsar/bearhub.git
synced 2026-07-09 21:14:15 +02:00
[screenshots] fix -> not display no content status
This commit is contained in:
@@ -89,9 +89,9 @@ class ScreenshotsDialog(QDialog):
|
|||||||
|
|
||||||
if res:
|
if res:
|
||||||
if not res.content:
|
if not res.content:
|
||||||
self.logger.warning("Image [{}] from {} has no content".format(idx, url))
|
self.logger.warning('Image [{}] from {} has no content'.format(idx, url))
|
||||||
self.screenshots.append(self.i18n['screenshots.download.no_content'])
|
self.loaded_imgs.append(self.i18n['screenshots.download.no_content'])
|
||||||
return
|
self._load_img()
|
||||||
else:
|
else:
|
||||||
self.logger.info('Image [{}] successfully downloaded'.format(idx))
|
self.logger.info('Image [{}] successfully downloaded'.format(idx))
|
||||||
pixmap = QPixmap()
|
pixmap = QPixmap()
|
||||||
@@ -106,7 +106,8 @@ class ScreenshotsDialog(QDialog):
|
|||||||
self._load_img()
|
self._load_img()
|
||||||
else:
|
else:
|
||||||
self.logger.info("Could not retrieve image [{}] from {}".format(idx, url))
|
self.logger.info("Could not retrieve image [{}] from {}".format(idx, url))
|
||||||
self.screenshots.append(self.i18n['screenshots.download.no_response'])
|
self.loaded_imgs.append(self.i18n['screenshots.download.no_response'])
|
||||||
|
self._load_img()
|
||||||
|
|
||||||
def back(self):
|
def back(self):
|
||||||
self.img_idx -= 1
|
self.img_idx -= 1
|
||||||
|
|||||||
Reference in New Issue
Block a user