mirror of
https://github.com/onionshare/onionshare.git
synced 2025-08-03 03:46:21 -04:00
Rename download_count/download_id, upload_count/upload_id, and visit_count/visit_id to simply cur_history_id/history_id, and make all errors create IndividualFileHistoryItem widgets
This commit is contained in:
parent
11860b55f2
commit
54ba711cbf
6 changed files with 66 additions and 46 deletions
|
@ -394,9 +394,9 @@ class IndividualFileHistoryItem(HistoryItem):
|
|||
self.progress_bar.hide()
|
||||
return
|
||||
|
||||
# Is this a directory listing?
|
||||
if self.directory_listing:
|
||||
self.status_code_label.setText("200")
|
||||
# Is a status code already sent?
|
||||
if 'status_code' in data:
|
||||
self.status_code_label.setText("{}".format(data['status_code']))
|
||||
self.status = HistoryItem.STATUS_FINISHED
|
||||
self.progress_bar.hide()
|
||||
return
|
||||
|
@ -415,6 +415,7 @@ class IndividualFileHistoryItem(HistoryItem):
|
|||
|
||||
self.progress_bar.setValue(downloaded_bytes)
|
||||
if downloaded_bytes == self.progress_bar.total_bytes:
|
||||
self.status_code_label.setText("200")
|
||||
self.progress_bar.hide()
|
||||
self.status = HistoryItem.STATUS_FINISHED
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue