mirror of
https://github.com/onionshare/onionshare.git
synced 2025-01-25 18:52:58 -03:00
Fix small --local-only bug that causes a crash when canceling settings
This commit is contained in:
parent
ac13790673
commit
86fa0215d8
1 changed files with 1 additions and 1 deletions
|
@ -737,7 +737,7 @@ class SettingsDialog(QtWidgets.QDialog):
|
|||
Cancel button clicked.
|
||||
"""
|
||||
self.common.log('SettingsDialog', 'cancel_clicked')
|
||||
if not self.onion.is_authenticated():
|
||||
if not self.local_only and self.onion.is_authenticated():
|
||||
Alert(self.common, strings._('gui_tor_connection_canceled', True), QtWidgets.QMessageBox.Warning)
|
||||
sys.exit()
|
||||
else:
|
||||
|
|
Loading…
Add table
Reference in a new issue