mirror of
https://github.com/onionshare/onionshare.git
synced 2025-01-15 01:07:21 -05:00
Bugfix, settings was throwing an error and quitting when Tor was authenticated, not when it was not authenticated
This commit is contained in:
parent
edd5d4f78c
commit
10581b1421
@ -758,7 +758,7 @@ class SettingsDialog(QtWidgets.QDialog):
|
|||||||
Cancel button clicked.
|
Cancel button clicked.
|
||||||
"""
|
"""
|
||||||
self.common.log('SettingsDialog', 'cancel_clicked')
|
self.common.log('SettingsDialog', 'cancel_clicked')
|
||||||
if not self.local_only and self.onion.is_authenticated():
|
if not self.local_only and not self.onion.is_authenticated():
|
||||||
Alert(self.common, strings._('gui_tor_connection_canceled', True), QtWidgets.QMessageBox.Warning)
|
Alert(self.common, strings._('gui_tor_connection_canceled', True), QtWidgets.QMessageBox.Warning)
|
||||||
sys.exit()
|
sys.exit()
|
||||||
else:
|
else:
|
||||||
|
Loading…
Reference in New Issue
Block a user