chore: Refresh pre selected account property (#15503)

This commit is contained in:
Cuteivist 2024-07-10 11:03:32 +02:00 committed by GitHub
parent bc736257d1
commit b4059b1f7d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 4 additions and 1 deletions

View File

@ -58,7 +58,10 @@ StatusDialog {
standardButtons: StandardButton.Ok
}
readonly property var selectedAccount: selectedSenderAccountEntry.item ?? ModelUtils.get(store.accounts, 0)
readonly property var selectedAccount: {
selectedSenderAccountEntry.value // Item changed is not triggered when the value is changed
return selectedSenderAccountEntry.item ?? ModelUtils.get(store.accounts, 0)
}
property var sendTransaction: function() {
d.isPendingTx = true