mirror of
https://github.com/onionshare/onionshare.git
synced 2025-05-10 02:15:21 -04:00
Fix Settings dialog, make it so testing Tor with bundled_tor settings works
This commit is contained in:
parent
f48e160816
commit
498de14a3d
1 changed files with 4 additions and 3 deletions
|
@ -350,6 +350,7 @@ class SettingsDialog(QtWidgets.QDialog):
|
||||||
|
|
||||||
def tor_status_update_func(progress, summary):
|
def tor_status_update_func(progress, summary):
|
||||||
self._tor_status_update(progress, summary)
|
self._tor_status_update(progress, summary)
|
||||||
|
return True
|
||||||
else:
|
else:
|
||||||
tor_status_update_func = None
|
tor_status_update_func = None
|
||||||
|
|
||||||
|
@ -467,10 +468,10 @@ class SettingsDialog(QtWidgets.QDialog):
|
||||||
last_checked = strings._('gui_settings_autoupdate_timestamp_never', True)
|
last_checked = strings._('gui_settings_autoupdate_timestamp_never', True)
|
||||||
self.autoupdate_timestamp.setText(strings._('gui_settings_autoupdate_timestamp', True).format(last_checked))
|
self.autoupdate_timestamp.setText(strings._('gui_settings_autoupdate_timestamp', True).format(last_checked))
|
||||||
|
|
||||||
def _tor_status_update(self, message):
|
def _tor_status_update(self, progress, summary):
|
||||||
self.tor_status.setText('<strong>{}</strong><br>{}'.format(strings._('connecting_to_tor', True), message))
|
self.tor_status.setText('<strong>{}</strong><br>{}'.format(strings._('connecting_to_tor', True), summary))
|
||||||
self.qtapp.processEvents()
|
self.qtapp.processEvents()
|
||||||
if 'Done' in message:
|
if 'Done' in summary:
|
||||||
self.tor_status.hide()
|
self.tor_status.hide()
|
||||||
self._enable_buttons()
|
self._enable_buttons()
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue