[Pkg-privacy-commits] [onionshare] 167/256: Make the Settings dialog's 'Test Tor Settings' button work again, with changes to the Onion object
Ulrike Uhlig
ulrike at moszumanska.debian.org
Fri May 26 12:53:33 UTC 2017
This is an automated email from the git hooks/post-receive script.
ulrike pushed a commit to branch master
in repository onionshare.
commit d112b354144a526a2391ede148f15c0e6942a024
Author: Micah Lee <micah at micahflee.com>
Date: Sun May 14 17:35:35 2017 -0700
Make the Settings dialog's 'Test Tor Settings' button work again, with changes to the Onion object
---
onionshare_gui/settings_dialog.py | 9 ++++++---
1 file changed, 6 insertions(+), 3 deletions(-)
diff --git a/onionshare_gui/settings_dialog.py b/onionshare_gui/settings_dialog.py
index b5ae4f4..77fcbf2 100644
--- a/onionshare_gui/settings_dialog.py
+++ b/onionshare_gui/settings_dialog.py
@@ -347,11 +347,14 @@ class SettingsDialog(QtWidgets.QDialog):
if settings.get('connection_type') == 'bundled':
self.tor_status.show()
self._disable_buttons()
- bundled_tor_func = self._tor_status_update
+
+ def tor_status_update_func(progress, summary):
+ self._tor_status_update(progress, summary)
else:
- bundled_tor_func = None
+ tor_status_update_func = None
- onion = Onion(settings=settings, bundled_tor_func=bundled_tor_func)
+ onion = Onion()
+ onion.connect(settings=settings, tor_status_update_func=tor_status_update_func)
# If an exception hasn't been raised yet, the Tor settings work
Alert(strings._('settings_test_success', True).format(onion.tor_version, onion.supports_ephemeral, onion.supports_stealth))
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-privacy/packages/onionshare.git
More information about the Pkg-privacy-commits
mailing list