fix: Remove possibility to add watch accounts on release

This commit is contained in:
Alex Jbanca 2024-08-05 12:24:48 +03:00
parent 4a6b622458
commit 566a954935
No known key found for this signature in database
GPG Key ID: 6004079575C21C5D
2 changed files with 14 additions and 7 deletions

View File

@ -74,13 +74,19 @@ StatusMenu {
}
}
StatusAction {
objectName: "AccountMenu-AddWatchOnlyAccountAction-%1".arg(root.uniqueIdentifier)
text: qsTr("Add watched address")
enabled: !root.account
icon.name: "show"
onTriggered: {
root.addWatchOnlyAccountClicked()
Loader {
active: !production
sourceComponent: StatusAction {
objectName: "AccountMenu-AddWatchOnlyAccountAction-%1".arg(root.uniqueIdentifier)
text: qsTr("Add watched address")
enabled: !root.account
icon.name: "show"
onTriggered: {
root.addWatchOnlyAccountClicked()
}
}
onLoaded: {
root.addAction(item)
}
}
}

View File

@ -59,6 +59,7 @@ Item {
readonly property string addWatchOnlyAccKeyUid: Constants.appTranslatableConstants.addAccountLabelOptionAddWatchOnlyAcc
filters: [
FastExpressionFilter {
enabled: production
expression: model.keyPair.keyUid !== originModelWithoutWatchOnlyAcc.addWatchOnlyAccKeyUid
expectedRoles: ["keyPair"]
}