Fix the proxy entry not saving it's cleared state
This commit is contained in:
1 parent
7c4a683f1f
commit
5cb12b3445
1 file changed
+3
-3
@@ -1328,10 +1328,10 @@ def proxy_validate(entry: PlaceholderEntry, settings: Settings) -> bool:
|
||||
entry.replace(raw_url)
|
||||
url = URL(raw_url)
|
||||
valid = url.host is not None and url.port is not None
|
||||
if valid:
|
||||
settings.proxy = url
|
||||
else:
|
||||
if not valid:
|
||||
entry.clear()
|
||||
url = URL()
|
||||
settings.proxy = url
|
||||
return valid
|
||||
|
||||
|
||||
|
||||
Reference in new issue
Block a user