mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-05-12 21:00:36 +02:00
fixup! ui: Support wallets loaded dynamically
This commit is contained in:
parent
0e674ba557
commit
2e75134719
@ -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();
|
||||||
|
if (current_wallet_view) {
|
||||||
|
walletView->setCurrentIndex(current_wallet_view->currentIndex());
|
||||||
|
} else {
|
||||||
walletView->gotoOverviewPage();
|
walletView->gotoOverviewPage();
|
||||||
|
}
|
||||||
|
|
||||||
walletStack->addWidget(walletView);
|
walletStack->addWidget(walletView);
|
||||||
mapWalletViews[name] = walletView;
|
mapWalletViews[name] = walletView;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user