Add Proxy to Addon Manager with UI

Correct crash when Macro description is not reachable

Python crashed when under proxy - Macro list is charged - Proxy is undone ( internet connection lost) - Try to load macro description (u=None)

Add Proxy setting in Addon Manager Option UI

Correction of SSL context

Replace ssl.Purpose.CLIENT_AUTH by ssl.Purpose.SERVER_AUTH as context for a client

Add configuration of proxy setting UI

Add proxy management by urllib
This commit is contained in:
Zackles
2020-01-09 18:25:25 +01:00
committed by Yorik van Havre
parent 683fbffe4a
commit d7d88da291
4 changed files with 88 additions and 16 deletions

View File

@@ -7,7 +7,7 @@
<x>0</x>
<y>0</y>
<width>390</width>
<height>183</height>
<height>247</height>
</rect>
</property>
<property name="windowTitle">
@@ -24,6 +24,9 @@ installed addons will be checked for available updates
<property name="text">
<string>Automatically check for updates at start (requires GitPython)</string>
</property>
<property name="autoExclusive">
<bool>false</bool>
</property>
</widget>
</item>
<item>
@@ -41,6 +44,47 @@ sto be scanned for available addons</string>
</property>
</widget>
</item>
<item>
<widget class="Line" name="line">
<property name="orientation">
<enum>Qt::Horizontal</enum>
</property>
</widget>
</item>
<item>
<widget class="QLabel" name="labelProxy">
<property name="text">
<string>Proxy </string>
</property>
</widget>
</item>
<item>
<widget class="QRadioButton" name="radioButtonNoProxy">
<property name="text">
<string>No proxy</string>
</property>
</widget>
</item>
<item>
<widget class="QRadioButton" name="radioButtonSystemProxy">
<property name="text">
<string>User system proxy</string>
</property>
</widget>
</item>
<item>
<widget class="QRadioButton" name="radioButtonUserProxy">
<property name="text">
<string>User defined proxy :</string>
</property>
<property name="checked">
<bool>true</bool>
</property>
</widget>
</item>
<item>
<widget class="QTextEdit" name="userProxy"/>
</item>
<item>
<widget class="QDialogButtonBox" name="buttonBox">
<property name="orientation">
@@ -62,12 +106,12 @@ sto be scanned for available addons</string>
<slot>accept()</slot>
<hints>
<hint type="sourcelabel">
<x>248</x>
<y>254</y>
<x>257</x>
<y>237</y>
</hint>
<hint type="destinationlabel">
<x>157</x>
<y>274</y>
<y>246</y>
</hint>
</hints>
</connection>
@@ -78,12 +122,12 @@ sto be scanned for available addons</string>
<slot>reject()</slot>
<hints>
<hint type="sourcelabel">
<x>316</x>
<y>260</y>
<x>325</x>
<y>237</y>
</hint>
<hint type="destinationlabel">
<x>286</x>
<y>274</y>
<y>246</y>
</hint>
</hints>
</connection>