Fix the proxy entry not saving it's cleared state

This commit is contained in:
DevilXD committed 2022-12-01 18:50:02 +01:00
1 parent 7c4a683f1f
commit 5cb12b3445
1 file changed
+3 -3
+3 -3
View File
@@ -1328,10 +1328,10 @@ def proxy_validate(entry: PlaceholderEntry, settings: Settings) -> bool:
entry.replace(raw_url) entry.replace(raw_url)
url = URL(raw_url) url = URL(raw_url)
valid = url.host is not None and url.port is not None valid = url.host is not None and url.port is not None
if valid: if not valid:
settings.proxy = url
else:
entry.clear() entry.clear()
url = URL()
settings.proxy = url
return valid return valid