fix(wallet): warning that key pair requires import disappears after adding new acc on paired device

Fixes: #13795
This commit is contained in:
Sale Djenic 2024-03-04 09:12:46 +01:00 committed by saledjenic
parent fda1d37c5b
commit 65c553b9e8
1 changed files with 10 additions and 0 deletions

View File

@ -49,7 +49,9 @@ Column {
QtObject { QtObject {
id: d id: d
property bool propertyReevaluation: false
readonly property int unimportedNonProfileKeypairs: { readonly property int unimportedNonProfileKeypairs: {
d.propertyReevaluation
let total = 0 let total = 0
for (var i = 0; i < keypairsRepeater.count; i++) { for (var i = 0; i < keypairsRepeater.count; i++) {
let item = keypairsRepeater.itemAt(i) let item = keypairsRepeater.itemAt(i)
@ -70,6 +72,7 @@ Column {
} }
readonly property int allNonProfileKeypairsMigratedToAKeycard: { readonly property int allNonProfileKeypairsMigratedToAKeycard: {
d.propertyReevaluation
for (var i = 0; i < keypairsRepeater.count; i++) { for (var i = 0; i < keypairsRepeater.count; i++) {
let item = keypairsRepeater.itemAt(i) let item = keypairsRepeater.itemAt(i)
if (item == undefined || item == null) { if (item == undefined || item == null) {
@ -251,6 +254,13 @@ Column {
id: keypairsRepeater id: keypairsRepeater
objectName: "generatedAccounts" objectName: "generatedAccounts"
model: walletStore.originModel model: walletStore.originModel
onItemAdded: {
d.propertyReevaluation = !d.propertyReevaluation
}
onItemRemoved: {
d.propertyReevaluation = !d.propertyReevaluation
}
delegate: WalletKeyPairDelegate { delegate: WalletKeyPairDelegate {
width: parent.width width: parent.width
keyPair: model.keyPair keyPair: model.keyPair