mirror of
https://github.com/onionshare/onionshare.git
synced 2025-05-06 08:25:15 -04:00
Fixes for the edge case where Tor connection dialog is canceled, but the Tor process remains open in the background, which was causing onion.is_authenticated() to True. Remove excessive alerts
This commit is contained in:
parent
b442b5d41b
commit
6f4d7f7f44
5 changed files with 15 additions and 8 deletions
|
@ -460,6 +460,7 @@ class SettingsDialog(QtWidgets.QDialog):
|
|||
# the Onion object
|
||||
reboot_onion = False
|
||||
if self.onion.is_authenticated():
|
||||
common.log('SettingsDialog', 'save_clicked', 'Connected to Tor')
|
||||
def changed(s1, s2, keys):
|
||||
"""
|
||||
Compare the Settings objects s1 and s2 and return true if any values
|
||||
|
@ -478,6 +479,7 @@ class SettingsDialog(QtWidgets.QDialog):
|
|||
reboot_onion = True
|
||||
|
||||
else:
|
||||
common.log('SettingsDialog', 'save_clicked', 'Not connected to Tor')
|
||||
# Tor isn't connected, so try connecting
|
||||
reboot_onion = True
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue