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->showOutOfSyncWarning(bOutOfSync);
|
||||
|
||||
/* TODO we should goto the currently selected page once dynamically adding wallets is supported */
|
||||
walletView->gotoOverviewPage();
|
||||
WalletView* current_wallet_view = currentWalletView();
|
||||
if (current_wallet_view) {
|
||||
walletView->setCurrentIndex(current_wallet_view->currentIndex());
|
||||
} else {
|
||||
walletView->gotoOverviewPage();
|
||||
}
|
||||
|
||||
walletStack->addWidget(walletView);
|
||||
mapWalletViews[name] = walletView;
|
||||
|
||||
|
|
Loading…
Reference in a new issue