Commit fa8bab81 authored by Philipp Hörist's avatar Philipp Hörist

Accounts: Use default_text argument for proxy setting

parent 837ade88
Pipeline #6268 passed with stages
in 3 minutes and 53 seconds
......@@ -693,6 +693,7 @@ class ConnectionPage(GenericSettingPage):
Setting(SettingKind.POPOVER, _('Proxy'),
SettingType.ACCOUNT_CONFIG, 'proxy', name='proxy',
props={'entries': self._get_proxies(),
'default-text': _('No Proxy'),
'button-icon-name': 'preferences-system-symbolic',
'button-callback': self._on_proxy_edit}),
......@@ -720,10 +721,7 @@ class ConnectionPage(GenericSettingPage):
def _get_proxies():
proxies = {'': _('No Proxy')}
for proxy in app.settings.get_proxies():
proxies[proxy] = proxy
return proxies
return {proxy: proxy for proxy in app.settings.get_proxies()}
def _on_proxy_edit(*args):
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