def METHOD_NAME(self, download: downloads.TempDownload) -> None:
    """Check if all downloads are finished and if so, trigger callback.
    Arguments:
        download: The finished download.
    """
    self._in_progress.remove(download)
    if download.successful:
        self._done_count += 1
        assert not isinstance(download.fileobj, downloads.UnsupportedAttribute)
        assert download.fileobj is not None
        try:
            # Call the user-provided callback
            self.single_download_finished.emit(download.fileobj)
        finally:
            download.fileobj.close()
    if not self._in_progress and self._finished_registering_downloads:
        self._finished = True
        self.all_downloads_finished.emit(self._done_count)