Display tor connection percent when testing bundled tor in settings

This commit is contained in:
Micah Lee 2017-05-17 12:09:56 -07:00
parent d3a7eef95c
commit f6eb178f7b
No known key found for this signature in database
GPG Key ID: 403C2657CD994F73

View File

@ -541,7 +541,7 @@ class SettingsDialog(QtWidgets.QDialog):
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, progress, summary): def _tor_status_update(self, progress, summary):
self.tor_status.setText('<strong>{}</strong><br>{}'.format(strings._('connecting_to_tor', True), summary)) self.tor_status.setText('<strong>{}</strong><br>{}% {}'.format(strings._('connecting_to_tor', True), progress, summary))
self.qtapp.processEvents() self.qtapp.processEvents()
if 'Done' in summary: if 'Done' in summary:
self.tor_status.hide() self.tor_status.hide()