mirror of
https://github.com/onionshare/onionshare.git
synced 2025-05-04 23:45:04 -04:00
Add Tor connection status to the main window status bar
This commit is contained in:
parent
80d475f65b
commit
1fa88c3d07
4 changed files with 16 additions and 6 deletions
|
@ -286,14 +286,14 @@ class SettingsDialog(QtWidgets.QDialog):
|
|||
settings = self.settings_from_fields()
|
||||
|
||||
try:
|
||||
# Create dialog for showing Tor connection status
|
||||
# Show Tor connection status if connection type is bundled tor
|
||||
if settings.get('connection_type') == 'bundled':
|
||||
self.tor_status.show()
|
||||
self.test_button.setEnabled(False)
|
||||
self.save_button.setEnabled(False)
|
||||
self.cancel_button.setEnabled(False)
|
||||
def bundled_tor_func(message):
|
||||
self.tor_status.setText('<strong>{}</strong><br>{}'.format(strings._('connecting_to_tor'), message))
|
||||
self.tor_status.setText('<strong>{}</strong><br>{}'.format(strings._('connecting_to_tor', True), message))
|
||||
self.qtapp.processEvents()
|
||||
if 'Done' in message:
|
||||
self.tor_status.hide()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue