Small fix in pyfaGlobalPreferences, proxy autodetection returns None if no proxy are available (from system settings)
This commit is contained in:
@@ -125,10 +125,10 @@ class PFGlobalPref ( PreferenceView):
|
||||
|
||||
proxy = self.proxySettings.autodetect()
|
||||
|
||||
if len(proxy) == 0:
|
||||
txt = "None"
|
||||
else:
|
||||
if proxy:
|
||||
txt = proxy
|
||||
else:
|
||||
txt = "None"
|
||||
|
||||
self.stPSAutoDetected.SetLabel("Auto-detected: " + txt)
|
||||
self.stPSAutoDetected.Disable()
|
||||
|
||||
Reference in New Issue
Block a user