parent
29629a3d6d
commit
4767c705df
|
@ -93,15 +93,14 @@ Item {
|
||||||
asset.bgColor: Theme.palette.warningColor3
|
asset.bgColor: Theme.palette.warningColor3
|
||||||
title: qsTr("Testnet mode")
|
title: qsTr("Testnet mode")
|
||||||
subTitle: qsTr("Switch entire Status app to testnet only mode")
|
subTitle: qsTr("Switch entire Status app to testnet only mode")
|
||||||
onClicked: testnetSwitch.clicked()
|
onClicked: testnetSwitch.onToggled()
|
||||||
components: [
|
components: [
|
||||||
StatusSwitch {
|
StatusSwitch {
|
||||||
id: testnetSwitch
|
id: testnetSwitch
|
||||||
objectName: "testnetModeSwitch"
|
objectName: "testnetModeSwitch"
|
||||||
checked: walletStore.areTestNetworksEnabled
|
checked: walletStore.areTestNetworksEnabled
|
||||||
checkable: false
|
onToggled: {
|
||||||
onClicked: {
|
checked = Qt.binding(() => walletStore.areTestNetworksEnabled)
|
||||||
checkable = false
|
|
||||||
Global.openTestnetPopup()
|
Global.openTestnetPopup()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue