fix(wallet): move to keycard option should not be available for private key imported key pairs

Closes #13796
This commit is contained in:
Sale Djenic 2024-03-01 11:13:32 +01:00 committed by saledjenic
parent 65c553b9e8
commit e44774dd88
1 changed files with 1 additions and 1 deletions

View File

@ -36,7 +36,7 @@ StatusMenu {
StatusAction { StatusAction {
text: enabled? root.keyPair.migratedToKeycard? qsTr("Stop using Keycard") : qsTr("Move keypair to a Keycard") : "" text: enabled? root.keyPair.migratedToKeycard? qsTr("Stop using Keycard") : qsTr("Move keypair to a Keycard") : ""
enabled: !!root.keyPair enabled: !!root.keyPair && root.keyPair.pairType !== Constants.keypair.type.privateKeyImport
icon.name: !!root.keyPair && root.keyPair.migratedToKeycard? "keycard-crossed" : "keycard" icon.name: !!root.keyPair && root.keyPair.migratedToKeycard? "keycard-crossed" : "keycard"
icon.color: Theme.palette.primaryColor1 icon.color: Theme.palette.primaryColor1
onTriggered: { onTriggered: {