emit to the status bar when the private key is saved to disk

This commit is contained in:
Miguel Jacq 2017-12-07 13:02:56 +11:00
parent 3a056803a9
commit d69e93a5ba
No known key found for this signature in database
GPG Key ID: EEA4341C6D97A0B6
2 changed files with 9 additions and 0 deletions

View File

@ -80,6 +80,7 @@ class OnionShareGui(QtWidgets.QMainWindow):
self.file_selection.file_list.files_updated.connect(self.server_status.update) self.file_selection.file_list.files_updated.connect(self.server_status.update)
self.server_status.url_copied.connect(self.copy_url) self.server_status.url_copied.connect(self.copy_url)
self.server_status.hidservauth_copied.connect(self.copy_hidservauth) self.server_status.hidservauth_copied.connect(self.copy_hidservauth)
self.server_status.private_key_saved.connect(self.private_key_saved)
self.starting_server_step2.connect(self.start_server_step2) self.starting_server_step2.connect(self.start_server_step2)
self.starting_server_step3.connect(self.start_server_step3) self.starting_server_step3.connect(self.start_server_step3)
self.starting_server_error.connect(self.start_server_error) self.starting_server_error.connect(self.start_server_error)
@ -470,6 +471,13 @@ class OnionShareGui(QtWidgets.QMainWindow):
common.log('OnionShareGui', 'copy_hidservauth') common.log('OnionShareGui', 'copy_hidservauth')
self.status_bar.showMessage(strings._('gui_copied_hidservauth', True), 2000) self.status_bar.showMessage(strings._('gui_copied_hidservauth', True), 2000)
def private_key_saved(self):
"""
When the private key gets saved, display this in the status bar.
"""
common.log('OnionShareGui', 'private_key_saved')
self.status_bar.showMessage(strings._('gui_private_key_saved', True), 2000)
def clear_message(self): def clear_message(self):
""" """
Clear messages from the status bar. Clear messages from the status bar.

View File

@ -46,6 +46,7 @@
"gui_canceled": "Canceled", "gui_canceled": "Canceled",
"gui_copied_url": "Copied URL to clipboard", "gui_copied_url": "Copied URL to clipboard",
"gui_copied_hidservauth": "Copied HidServAuth line to clipboard", "gui_copied_hidservauth": "Copied HidServAuth line to clipboard",
"gui_private_key_saved": "Private key saved to settings",
"gui_starting_server1": "Starting Tor onion service...", "gui_starting_server1": "Starting Tor onion service...",
"gui_starting_server2": "Crunching files...", "gui_starting_server2": "Crunching files...",
"gui_please_wait": "Please wait...", "gui_please_wait": "Please wait...",