mirror of
https://github.com/onionshare/onionshare.git
synced 2024-12-29 01:06:16 -05:00
emit to the status bar when the private key is saved to disk
This commit is contained in:
parent
3a056803a9
commit
d69e93a5ba
@ -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.
|
||||||
|
@ -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...",
|
||||||
|
Loading…
Reference in New Issue
Block a user