mirror of
https://github.com/onionshare/onionshare.git
synced 2024-10-01 01:35:40 -04:00
Add systray notification when Tor connection is lost, thanks @Baccount
This commit is contained in:
parent
2cd61d76e0
commit
0a5bd45dfe
@ -408,6 +408,8 @@ class OnionShareGui(QtWidgets.QMainWindow):
|
|||||||
self.server_status.stop_server()
|
self.server_status.stop_server()
|
||||||
self.server_status.server_button.setEnabled(False)
|
self.server_status.server_button.setEnabled(False)
|
||||||
self.status_bar.showMessage(strings._('gui_tor_connection_lost', True))
|
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
|
# scroll to the bottom of the dl progress bar log pane
|
||||||
# if a new download has been added
|
# if a new download has been added
|
||||||
|
Loading…
Reference in New Issue
Block a user