1
0
Fork 0
mirror of synced 2024-06-23 08:40:45 +12:00

LibraryWidget: Always update the progress label to work-around layout issue

This commit is contained in:
loathingKernel 2022-06-26 13:44:12 +03:00
parent b8668854db
commit 1ad5413e02

View file

@ -112,9 +112,9 @@ class LibraryWidget(ImageWidget):
self.updateProgress(0)
def updateProgress(self, progress: int):
self.progress_label.setText(f"{progress:02}%")
if progress > self._progress:
self._progress = progress
self.progress_label.setText(f"{progress:02}%")
self.setPixmap(self.progressPixmap(self._color_pixmap, self._gray_pixmap, progress))
def hideProgress(self, stopped: bool):