Remove references to self.web.website_mode.download_filesize because that variable no longer exists

This commit is contained in:
Micah Lee 2019-05-10 14:57:41 -07:00
parent ab930011ad
commit 915ff0f4f3
No known key found for this signature in database
GPG Key ID: 403C2657CD994F73

View File

@ -167,11 +167,6 @@ class WebsiteMode(Mode):
warning, if applicable.
"""
# Warn about sending large files over Tor
if self.web.website_mode.download_filesize >= 157286400: # 150mb
self.filesize_warning.setText(strings._("large_filesize"))
self.filesize_warning.show()
if self.web.website_mode.set_file_info(self.filenames):
self.success.emit()
else:
@ -219,8 +214,7 @@ class WebsiteMode(Mode):
Handle REQUEST_STARTED event.
"""
if ( (event["path"] == '') or (event["path"].find(".htm") != -1 ) ):
filesize = self.web.website_mode.download_filesize
item = VisitHistoryItem(self.common, event["data"]["id"], filesize)
item = VisitHistoryItem(self.common, event["data"]["id"], 0)
self.history.add(event["data"]["id"], item)
self.toggle_history.update_indicator(True)