Skip to content

Commit

Permalink
[models] Add UI model update when a wallet is created
Browse files Browse the repository at this point in the history
  • Loading branch information
mauricio1802 committed Feb 14, 2020
1 parent 44c84f6 commit f860804
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions src/models/walletsManager.go
Original file line number Diff line number Diff line change
Expand Up @@ -859,6 +859,12 @@ func (walletM *WalletManager) createEncryptedWallet(seed, label, wltType, passwo
logWalletManager.Info("Created encrypted wallet")
qWallet := fromWalletToQWallet(wlt, true, false)
walletM.wallets = append(walletM.wallets, qWallet)
wi := &updateWalletInfo{
isNew: true,
row: len(walletM.wallets)-1,
wallet: walletM.wallets[len(walletM.wallets)-1]
}
walletM.updaterChannel <- wi
return qWallet
}

Expand All @@ -874,6 +880,11 @@ func (walletM *WalletManager) createUnencryptedWallet(seed, label, wltType strin

qWallet := fromWalletToQWallet(wlt, true, false)
walletM.wallets = append(walletM.wallets, qWallet)
wi := &updateWalletInfo{
isNew: true,
row: len(walletM.wallets)-1,
wallet: walletM.wallets[len(walletM.wallets)-1]
}
return qWallet

}
Expand Down

0 comments on commit f860804

Please sign in to comment.