mirror of
https://github.com/onionshare/onionshare.git
synced 2025-01-10 19:52:50 -03:00
Add systray notification when Tor connection is lost, thanks @Baccount
This commit is contained in:
parent
2cd61d76e0
commit
0a5bd45dfe
1 changed files with 2 additions and 0 deletions
|
@ -408,6 +408,8 @@ class OnionShareGui(QtWidgets.QMainWindow):
|
|||
self.server_status.stop_server()
|
||||
self.server_status.server_button.setEnabled(False)
|
||||
self.status_bar.showMessage(strings._('gui_tor_connection_lost', True))
|
||||
if self.systemTray.supportsMessages() and self.settings.get('systray_notifications'):
|
||||
self.systemTray.showMessage(strings._('gui_tor_connection_lost', True), strings._('gui_tor_connection_error_settings', True))
|
||||
|
||||
# scroll to the bottom of the dl progress bar log pane
|
||||
# if a new download has been added
|
||||
|
|
Loading…
Reference in a new issue