mirror of
https://github.com/onionshare/onionshare.git
synced 2025-07-31 18:38:57 -04:00
Rename Downloads method names to remove the word "download"
This commit is contained in:
parent
be36f3a4b6
commit
a0db6d0ee7
2 changed files with 9 additions and 9 deletions
|
@ -126,7 +126,7 @@ class Downloads(QtWidgets.QScrollArea):
|
|||
widget.setLayout(layout)
|
||||
self.setWidget(widget)
|
||||
|
||||
def add_download(self, download_id, total_bytes):
|
||||
def add(self, download_id, total_bytes):
|
||||
"""
|
||||
Add a new download progress bar.
|
||||
"""
|
||||
|
@ -141,19 +141,19 @@ class Downloads(QtWidgets.QScrollArea):
|
|||
# Scroll to the bottom
|
||||
self.vbar.setValue(self.vbar.maximum())
|
||||
|
||||
def update_download(self, download_id, downloaded_bytes):
|
||||
def update(self, download_id, downloaded_bytes):
|
||||
"""
|
||||
Update the progress of a download progress bar.
|
||||
"""
|
||||
self.downloads[download_id].update(downloaded_bytes)
|
||||
|
||||
def cancel_download(self, download_id):
|
||||
def cancel(self, download_id):
|
||||
"""
|
||||
Update a download progress bar to show that it has been canceled.
|
||||
"""
|
||||
self.downloads[download_id].cancel()
|
||||
|
||||
def reset_downloads(self):
|
||||
def reset(self):
|
||||
"""
|
||||
Reset the downloads back to zero
|
||||
"""
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue