mirror of
https://github.com/onionshare/onionshare.git
synced 2024-12-28 08:49:30 -05:00
Remove references to self.web.website_mode.download_filesize because that variable no longer exists
This commit is contained in:
parent
ab930011ad
commit
915ff0f4f3
@ -167,11 +167,6 @@ class WebsiteMode(Mode):
|
|||||||
warning, if applicable.
|
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):
|
if self.web.website_mode.set_file_info(self.filenames):
|
||||||
self.success.emit()
|
self.success.emit()
|
||||||
else:
|
else:
|
||||||
@ -219,8 +214,7 @@ class WebsiteMode(Mode):
|
|||||||
Handle REQUEST_STARTED event.
|
Handle REQUEST_STARTED event.
|
||||||
"""
|
"""
|
||||||
if ( (event["path"] == '') or (event["path"].find(".htm") != -1 ) ):
|
if ( (event["path"] == '') or (event["path"].find(".htm") != -1 ) ):
|
||||||
filesize = self.web.website_mode.download_filesize
|
item = VisitHistoryItem(self.common, event["data"]["id"], 0)
|
||||||
item = VisitHistoryItem(self.common, event["data"]["id"], filesize)
|
|
||||||
|
|
||||||
self.history.add(event["data"]["id"], item)
|
self.history.add(event["data"]["id"], item)
|
||||||
self.toggle_history.update_indicator(True)
|
self.toggle_history.update_indicator(True)
|
||||||
|
Loading…
Reference in New Issue
Block a user