fix: Remove possibility to add watch accounts on release
(cherry picked from commit 566a954935
)
This commit is contained in:
parent
ed650d32dd
commit
6a7b0c0289
|
@ -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)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -59,6 +59,7 @@ Item {
|
|||
readonly property string addWatchOnlyAccKeyUid: Constants.appTranslatableConstants.addAccountLabelOptionAddWatchOnlyAcc
|
||||
filters: [
|
||||
FastExpressionFilter {
|
||||
enabled: production
|
||||
expression: model.keyPair.keyUid !== originModelWithoutWatchOnlyAcc.addWatchOnlyAccKeyUid
|
||||
expectedRoles: ["keyPair"]
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue