mirror of
https://github.com/onionshare/onionshare.git
synced 2025-06-27 07:50:39 -04:00
Use correct variable name for Downloads
This commit is contained in:
parent
709eeeac5f
commit
4aed7c0f9d
1 changed files with 4 additions and 4 deletions
|
@ -92,11 +92,11 @@ class DownloadList(QtWidgets.QListWidget):
|
||||||
self.setSelectionMode(QtWidgets.QAbstractItemView.NoSelection)
|
self.setSelectionMode(QtWidgets.QAbstractItemView.NoSelection)
|
||||||
self.setVerticalScrollBarPolicy(QtCore.Qt.ScrollBarAlwaysOn)
|
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.
|
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
|
self.downloads[download_id] = download
|
||||||
|
|
||||||
item = QtWidgets.QListWidgetItem()
|
item = QtWidgets.QListWidgetItem()
|
||||||
|
@ -190,7 +190,7 @@ class Downloads(QtWidgets.QWidget):
|
||||||
# Reset once at the beginning
|
# Reset once at the beginning
|
||||||
self.reset()
|
self.reset()
|
||||||
|
|
||||||
def add(self, download_id, total_bytes):
|
def add(self, download_id, content_length):
|
||||||
"""
|
"""
|
||||||
Add a new download progress bar.
|
Add a new download progress bar.
|
||||||
"""
|
"""
|
||||||
|
@ -201,7 +201,7 @@ class Downloads(QtWidgets.QWidget):
|
||||||
self.not_empty.show()
|
self.not_empty.show()
|
||||||
|
|
||||||
# Add it to the list
|
# 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):
|
def update(self, download_id, downloaded_bytes):
|
||||||
"""
|
"""
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue