Update generators

This commit is contained in:
Hugo Posnic 2019-02-20 16:30:20 +01:00
parent 030684fe60
commit 460161b6ee

View file

@ -172,8 +172,8 @@ class StartQT5(QMainWindow):
delegatorlist = [] delegatorlist = []
for fullpath in images: for fullpath in images:
try: # recompress images already in the list try: # recompress images already in the list
image = (i.image for i in self.imagelist image = next(i.image for i in self.imagelist
if i.image.fullpath == fullpath).__next__() if i.image.fullpath == fullpath)
if image.compressed: if image.compressed:
image.reset() image.reset()
image.recompression = True image.recompression = True