From 5cb12b344560375826e9c96ce3702859cbec05f2 Mon Sep 17 00:00:00 2001 From: DevilXD Date: Thu, 1 Dec 2022 18:50:02 +0100 Subject: [PATCH] Fix the proxy entry not saving it's cleared state --- gui.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/gui.py b/gui.py index a8754ee..4a7ad6b 100644 --- a/gui.py +++ b/gui.py @@ -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