mirror of
https://github.com/onionshare/onionshare.git
synced 2025-05-05 16:05:24 -04:00
Display information about tor when testing settings is successful
This commit is contained in:
parent
19d020f245
commit
b8e797049b
3 changed files with 7 additions and 7 deletions
|
@ -214,9 +214,10 @@ class SettingsDialog(QtWidgets.QDialog):
|
|||
onion = Onion(settings=settings)
|
||||
|
||||
# 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))
|
||||
|
||||
except (TorErrorInvalidSetting, TorErrorSocketPort, TorErrorSocketFile, TorErrorMissingPassword, TorErrorUnreadableCookieFile) as e:
|
||||
Alert(e.args[0])
|
||||
Alert(e.args[0], QtWidgets.QMessageBox.Warning)
|
||||
|
||||
def save_clicked(self):
|
||||
"""
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue