|
|
|
@ -1614,10 +1614,14 @@ Item {
|
|
|
|
|
anchors.right: parent.right
|
|
|
|
|
width: settingsStack.comboBoxWidth; indicatorWidth: settingsStack.comboBoxButtonWidth
|
|
|
|
|
model: ["None", "Tor", "i2p"]
|
|
|
|
|
currentIndex: ProxyManager.hasTor() ? model.indexOf("Tor") : model.indexOf("None")//model.indexOf(Script.getJsonRootObject()["proxy"]["type"])
|
|
|
|
|
currentIndex: (ProxyManager.hasTor() || ProxyManager.isTorRunning()) ? model.indexOf("Tor") : model.indexOf("None")//model.indexOf(Script.getJsonRootObject()["proxy"]["type"])
|
|
|
|
|
Component.onCompleted: {
|
|
|
|
|
if(ProxyManager.hasTor()) {
|
|
|
|
|
ProxyManager.startTorDaemon()
|
|
|
|
|
} else {
|
|
|
|
|
if(ProxyManager.isTorRunning()) {
|
|
|
|
|
ProxyManager.useTorProxy()
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
onActivated: {
|
|
|
|
|