mirror of
https://github.com/onionshare/onionshare.git
synced 2025-05-04 15:35:13 -04:00
emit to the status bar when the private key is saved to disk
This commit is contained in:
parent
3a056803a9
commit
d69e93a5ba
2 changed files with 9 additions and 0 deletions
|
@ -80,6 +80,7 @@ class OnionShareGui(QtWidgets.QMainWindow):
|
|||
self.file_selection.file_list.files_updated.connect(self.server_status.update)
|
||||
self.server_status.url_copied.connect(self.copy_url)
|
||||
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_step3.connect(self.start_server_step3)
|
||||
self.starting_server_error.connect(self.start_server_error)
|
||||
|
@ -470,6 +471,13 @@ class OnionShareGui(QtWidgets.QMainWindow):
|
|||
common.log('OnionShareGui', 'copy_hidservauth')
|
||||
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):
|
||||
"""
|
||||
Clear messages from the status bar.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue