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