Make receive mode events just like share mode, and rename REQUEST_DOWNLOAD to REQUEST_SHARE

This commit is contained in:
Micah Lee 2018-05-07 22:15:29 -07:00
parent de43cd22fa
commit 26a94fa161
5 changed files with 52 additions and 19 deletions

View file

@ -105,6 +105,7 @@ class ReceiveMode(Mode):
Starting the server.
"""
# Reset web counters
self.web.upload_count = 0
self.web.error404_count = 0
# Hide and reset the uploads if we have previously shared
@ -118,6 +119,12 @@ class ReceiveMode(Mode):
self.starting_server_step3.emit()
self.start_server_finished.emit()
def handle_tor_broke_custom(self):
"""
Connection to Tor broke.
"""
self.info_widget.hide()
def handle_request_load(self, event):
"""
Handle REQUEST_LOAD event.