mirror of
https://github.com/onionshare/onionshare.git
synced 2025-08-06 05:14:13 -04:00
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:
parent
4f89082f18
commit
9a076635c5
5 changed files with 15 additions and 11 deletions
|
@ -244,7 +244,7 @@ class ShareMode(Mode):
|
|||
"""
|
||||
Handle REQUEST_LOAD event.
|
||||
"""
|
||||
self.status_bar.showMessage(strings._('download_page_loaded', True))
|
||||
self.system_tray.showMessage(strings._('systray_page_loaded_title', True), strings._('systray_download_page_loaded_message', True))
|
||||
|
||||
def handle_request_download(self, event):
|
||||
"""
|
||||
|
@ -258,13 +258,6 @@ class ShareMode(Mode):
|
|||
|
||||
self.system_tray.showMessage(strings._('systray_download_started_title', True), strings._('systray_download_started_message', True))
|
||||
|
||||
def handle_request_rate_limit(self, event):
|
||||
"""
|
||||
Handle REQUEST_RATE_LIMIT event.
|
||||
"""
|
||||
self.stop_server()
|
||||
Alert(self.common, strings._('error_rate_limit'), QtWidgets.QMessageBox.Critical)
|
||||
|
||||
def handle_request_progress(self, event):
|
||||
"""
|
||||
Handle REQUEST_PROGRESS event.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue