fixup! ui: Support wallets loaded dynamically
This commit is contained in:
parent
0e674ba557
commit
2e75134719
1 changed files with 7 additions and 2 deletions
|
@ -57,8 +57,13 @@ bool WalletFrame::addWallet(WalletModel *walletModel)
|
||||||
walletView->setWalletModel(walletModel);
|
walletView->setWalletModel(walletModel);
|
||||||
walletView->showOutOfSyncWarning(bOutOfSync);
|
walletView->showOutOfSyncWarning(bOutOfSync);
|
||||||
|
|
||||||
/* TODO we should goto the currently selected page once dynamically adding wallets is supported */
|
WalletView* current_wallet_view = currentWalletView();
|
||||||
walletView->gotoOverviewPage();
|
if (current_wallet_view) {
|
||||||
|
walletView->setCurrentIndex(current_wallet_view->currentIndex());
|
||||||
|
} else {
|
||||||
|
walletView->gotoOverviewPage();
|
||||||
|
}
|
||||||
|
|
||||||
walletStack->addWidget(walletView);
|
walletStack->addWidget(walletView);
|
||||||
mapWalletViews[name] = walletView;
|
mapWalletViews[name] = walletView;
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue