Commit 43ea1969 authored by Philipp Hörist's avatar Philipp Hörist

Settings: Reset proxy setting if it is deleted

parent 782602e5
......@@ -829,6 +829,13 @@ class _Settings:
del self._settings['proxies'][proxy_name]
self._commit_settings('proxies')
if self.get_app_setting('global_proxy') == proxy_name:
self.set_app_setting('global_proxy', None)
for account in self._account_settings:
if self.get_account_setting(account, 'proxy') == proxy_name:
self.set_account_setting(account, 'proxy', None)
Settings = _Settings()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment