enable tor proxy by default if tor is found

pull/267/head
larteyoh 2 weeks ago
parent 0ea6174b49
commit a015f5d2e7

@ -1614,7 +1614,12 @@ Item {
anchors.right: parent.right
width: settingsStack.comboBoxWidth; indicatorWidth: settingsStack.comboBoxButtonWidth
model: ["None", "Tor", "i2p"]
currentIndex: model.indexOf("None")//model.indexOf(Script.getJsonRootObject()["proxy"]["type"])
currentIndex: ProxyManager.hasTor() ? model.indexOf("Tor") : model.indexOf("None")//model.indexOf(Script.getJsonRootObject()["proxy"]["type"])
Component.onCompleted: {
if(ProxyManager.hasTor()) {
ProxyManager.startTorDaemon()
}
}
onActivated: {
if(currentText == "None") {
ProxyManager.stopTorDaemon()

@ -21,7 +21,7 @@ ApplicationWindow {
//visibility: (Script.getJsonRootObject()["window_mode"] == 1) ? "FullScreen" : "Windowed"
title: qsTr("neroshop" + " v" + neroshopVersion)
width: 1024//Script.getJsonRootObject()["window_width"]
height: 700//Script.getJsonRootObject()["window_height"]
height: 600//Script.getJsonRootObject()["window_height"]
minimumWidth: 1024
minimumHeight: 600//768
color: NeroshopComponents.Style.getColorsFromTheme()[0]

Loading…
Cancel
Save