Start making Web events actually put Upload objects into Uploads

This commit is contained in:
Micah Lee 2018-05-07 23:07:11 -07:00
parent 9d557d4aa0
commit eb3d6f2171
No known key found for this signature in database
GPG key ID: 403C2657CD994F73
6 changed files with 142 additions and 92 deletions

View file

@ -387,6 +387,12 @@ class OnionShareGui(QtWidgets.QMainWindow):
elif event["type"] == Web.REQUEST_CLOSE_SERVER:
mode.handle_request_close_server(event)
elif event["type"] == Web.REQUEST_UPLOAD_NEW_FILE_STARTED:
mode.handle_request_upload_new_file_started(event)
elif event["type"] == Web.REQUEST_UPLOAD_FILE_RENAMED:
mode.handle_request_upload_file_renamed(event)
elif event["path"] != '/favicon.ico':
self.status_bar.showMessage('[#{0:d}] {1:s}: {2:s}'.format(mode.web.error404_count, strings._('other_page_loaded', True), event["path"]))