Newer
Older
StateGroup {
state: ctx ? ctx.status : ""
states: [
StateChangeScript {
script: Logic.setStatus("off");
}
PropertyChanges {
target: vpntoggle
checked: false
PropertyChanges {
target: autoSelectionItem
}
PropertyChanges {
target: mainCurrentGateway
text: ""
}
StateChangeScript {
script: {
Logic.setNeedsReconnect(false);
brReconnect = false;
if (needsDonate && !shownDonate) {
donate.visible = true;
shownDonate = true;
backend.donateSeen();
}
PropertyChanges {
target: vpntoggle
checked: true
}
PropertyChanges {
target: autoSelectionItem
text: {
if (autoSelectionButton.checked) {
//: %1 -> location to which the client is connected to
qsTr("Recommended (%1)").arg(locationStr())
qsTr("Recommended")
//: %1 -> location to which the client is connected to
text: qsTr("Connected to %1").arg(locationStr())
icon.source: icons["wait"]
}
PropertyChanges {
target: statusItem
}
PropertyChanges {
target: autoSelectionItem
text: {
if (autoSelectionButton.checked) {
//: %1 -> location to which the client is connected to
qsTr("Recommended (%1)").arg(locationStr())
//: Clickable item to switch to the recommended location
qsTr("Recommended")
}
PropertyChanges {
target: mainCurrentGateway
text: ""
}
PropertyChanges {
target: vpntoggle
checked: true
checkable: false
}
icon.source: icons["wait"]
}
PropertyChanges {
target: statusItem
PropertyChanges {
target: autoSelectionItem
//: Clickable item to switch to the recommended location
text: qsTr("Recommended")
}
PropertyChanges {
target: mainCurrentGateway
text: ""
}
PropertyChanges {
target: vpntoggle
checked: false
checkable: false
}
icon.source: icons["wait"]
}
PropertyChanges {
target: statusItem
PropertyChanges {
target: autoSelectionItem
//: Clickable item to swicth to the recommended location
text: qsTr("Recommended")
}
PropertyChanges {
target: mainCurrentGateway
text: ""
}
PropertyChanges {
target: vpntoggle
checked: false
checkable: true
}