mirror of
https://github.com/status-im/status-desktop.git
synced 2025-01-21 20:09:37 +00:00
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…
x
Reference in New Issue
Block a user