Make the "download page loaded" and "upload page loaded" messages displayed as systray notifications instead of in the status bar, and make it work for Receive Mode

This commit is contained in:
Micah Lee 2018-04-29 16:41:05 -07:00
parent 4f89082f18
commit 9a076635c5
No known key found for this signature in database
GPG key ID: 403C2657CD994F73
5 changed files with 15 additions and 11 deletions

View file

@ -93,6 +93,12 @@ class ReceiveMode(Mode):
self.starting_server_step3.emit()
self.start_server_finished.emit()
def handle_request_load(self, event):
"""
Handle REQUEST_LOAD event.
"""
self.system_tray.showMessage(strings._('systray_page_loaded_title', True), strings._('systray_upload_page_loaded_message', True))
def handle_request_close_server(self, event):
"""
Handle REQUEST_CLOSE_SERVER event.