actually show those messages in the system tray, not still in the statusbar, and with the mandatory titles

This commit is contained in:
Miguel Jacq 2018-02-11 17:52:14 +11:00
parent 5e4a4f6613
commit b8cf692cd8
No known key found for this signature in database
GPG key ID: EEA4341C6D97A0B6
2 changed files with 6 additions and 4 deletions

View file

@ -549,7 +549,7 @@ class OnionShareGui(QtWidgets.QMainWindow):
"""
common.log('OnionShareGui', 'copy_url')
if self.systemTray.supportsMessages() and self.settings.get('systray_notifications'):
self.status_bar.showMessage(strings._('gui_copied_url', True), 2000)
self.systemTray.showMessage(strings._('gui_copied_url_title', True), strings._('gui_copied_url', True))
def copy_hidservauth(self):
"""
@ -557,7 +557,7 @@ class OnionShareGui(QtWidgets.QMainWindow):
"""
common.log('OnionShareGui', 'copy_hidservauth')
if self.systemTray.supportsMessages() and self.settings.get('systray_notifications'):
self.status_bar.showMessage(strings._('gui_copied_hidservauth', True), 2000)
self.systemTray.showMessage(strings._('gui_copied_hidservauth_title', True), strings._('gui_copied_hidservauth', True))
def clear_message(self):
"""

View file

@ -44,8 +44,10 @@
"gui_copy_hidservauth": "Copy HidServAuth",
"gui_downloads": "Downloads:",
"gui_canceled": "Canceled",
"gui_copied_url": "Copied address to clipboard",
"gui_copied_hidservauth": "Copied HidServAuth line to clipboard",
"gui_copied_url_title": "Copied Onion address",
"gui_copied_url": "The Onion address has been copied to clipboard",
"gui_copied_hidservauth_title": "Copied HidServAuth",
"gui_copied_hidservauth": "The HidServAuth line has been copied to clipboard",
"gui_starting_server1": "Starting Tor onion service...",
"gui_starting_server2": "Crunching files...",
"gui_please_wait": "Please wait...",