Apply proxy settings before TWBlue main components start loading

This commit is contained in:
Jose Manuel Delicado
2021-01-22 17:40:48 +01:00
parent 7f4a13231f
commit b59d262dca
3 changed files with 14 additions and 2 deletions

View File

@@ -74,7 +74,8 @@ class globalSettingsController(object):
self.dialog.set_value("general", "update_period", config.app["app-settings"]["update_period"])
self.dialog.set_value("general", "check_for_updates", config.app["app-settings"]["check_for_updates"])
self.dialog.set_value("general", "remember_mention_and_longtweet", config.app["app-settings"]["remember_mention_and_longtweet"])
self.dialog.create_proxy(config.proxyTypes)
proxyTypes = [_("System default"), _("HTTP"), _("SOCKS v4"), _("SOCKS v5"), _("SOCKS v5 with DNS support")]
self.dialog.create_proxy(proxyTypes)
try:
self.dialog.proxy.type.SetSelection(config.app["proxy"]["type"])
except: