mirror of
https://github.com/onionshare/onionshare.git
synced 2024-10-01 01:35:40 -04:00
Use correct variable name for Downloads
This commit is contained in:
parent
709eeeac5f
commit
4aed7c0f9d
@ -92,11 +92,11 @@ class DownloadList(QtWidgets.QListWidget):
|
||||
self.setSelectionMode(QtWidgets.QAbstractItemView.NoSelection)
|
||||
self.setVerticalScrollBarPolicy(QtCore.Qt.ScrollBarAlwaysOn)
|
||||
|
||||
def add(self, download_id, total_bytes):
|
||||
def add(self, download_id, content_length):
|
||||
"""
|
||||
Add a new download progress bar.
|
||||
"""
|
||||
download = Download(self.common, download_id, total_bytes)
|
||||
download = Download(self.common, download_id, content_length)
|
||||
self.downloads[download_id] = download
|
||||
|
||||
item = QtWidgets.QListWidgetItem()
|
||||
@ -190,7 +190,7 @@ class Downloads(QtWidgets.QWidget):
|
||||
# Reset once at the beginning
|
||||
self.reset()
|
||||
|
||||
def add(self, download_id, total_bytes):
|
||||
def add(self, download_id, content_length):
|
||||
"""
|
||||
Add a new download progress bar.
|
||||
"""
|
||||
@ -201,7 +201,7 @@ class Downloads(QtWidgets.QWidget):
|
||||
self.not_empty.show()
|
||||
|
||||
# Add it to the list
|
||||
self.download_list.add(download_id, total_bytes)
|
||||
self.download_list.add(download_id, content_length)
|
||||
|
||||
def update(self, download_id, downloaded_bytes):
|
||||
"""
|
||||
|
Loading…
Reference in New Issue
Block a user