ui: Support wallets loaded dynamically #13097
pull promag wants to merge 3 commits into bitcoin:master from promag:2018-04-ui-wallet-loaded changing 3 files +35 −17-
promag commented at 5:31 pm on April 26, 2018: memberAdd support in the UI for wallets loaded dynamically.
-
fanquake added the label Wallet on Apr 26, 2018
-
promag force-pushed on Apr 26, 2018
-
fanquake added the label GUI on Apr 26, 2018
-
promag commented at 5:35 pm on April 26, 2018: member@ryanofsky had to convert
interfaces::Wallet
to shared pointer because ofQueuedConnection
. Do you have an alternative? Like instancing WalletModel on RPC thread and then make that the slot argument? -
promag force-pushed on Apr 26, 2018
-
promag commented at 6:22 pm on April 26, 2018: memberPrevious version in promag/2018-04-ui-wallet-loaded.1, now
WalletModel*
is the argument in the queued connection. -
promag force-pushed on Apr 26, 2018
-
promag force-pushed on Apr 26, 2018
-
promag commented at 9:27 pm on April 26, 2018: member
In order to test, suppose there are wallets
w1
andw2
:- launch
bitcoin-qt -regtest -nowallet
- open console and run
loadwallet w1
(should show wallet) - run
loadwallet w2
(should show multi-wallet selector)
- launch
-
in src/qt/bitcoin.cpp:254 in e15724a074 outdated
250@@ -250,7 +251,8 @@ public Q_SLOTS: 251 QTimer *pollShutdownTimer; 252 #ifdef ENABLE_WALLET 253 PaymentServer* paymentServer; 254- std::vector<WalletModel*> m_wallet_models; 255+ std::list<WalletModel*> m_wallet_models;
promag commented at 11:04 pm on April 26, 2018:Revert to vector.in src/qt/bitcoin.cpp:460 in e15724a074 outdated
455+ window->addWallet(walletModel); 456+ if (m_wallet_models.empty()) { 457+ window->setCurrentWallet(walletModel->getWalletName()); 458+ } 459+ 460+ connect(walletModel, SIGNAL(coinsSent(WalletModel*,SendCoinsRecipient,QByteArray)),
promag commented at 11:05 pm on April 26, 2018:Improve format.promag force-pushed on Apr 27, 2018promag renamed this:
Support wallets loaded dynamically
ui: Support wallets loaded dynamically
on Apr 30, 2018promag force-pushed on Apr 30, 2018jnewbery commented at 6:08 pm on April 30, 2018: memberTested ACK c9048b9213f7e9dc9b8da9b06c2caccd27f8c3ccpromag force-pushed on May 1, 2018meshcollider commented at 9:13 am on May 2, 2018: contributorConcept ACKlaanwj added this to the "Blockers" column in a project
jnewbery added this to the "In progress" column in a project
promag force-pushed on May 4, 2018ui: Remove unnecessary variable fFirstWallet 1c8fe0bf90ui: Support wallets loaded dynamically 0e674ba557promag force-pushed on May 16, 2018promag commented at 7:49 pm on May 16, 2018: memberRebased.mess110 commented at 10:16 pm on May 16, 2018: contributorTested ACK 0e674bajnewbery commented at 6:57 pm on May 17, 2018: memberTested ACK 0e674ba5572275bcc1eb8f91c6292f871925f965jonasschnelli commented at 7:51 pm on May 17, 2018: contributorStarted in regtest with only the “default” wallet loaded (single wallet mode), then, loaded another wallet. I could see the 2nd wallet, but the initial “default” wallet did had no name in the dropdown.jonasschnelli commented at 7:59 pm on May 17, 2018: contributorIf you load a wallet when you are in the “Receive”-Tab (or any other tab), select the wallet via the Dropdown the “Overview”-view will appear instead of the “Receive”-View.
jonasschnelli commented at 8:01 pm on May 17, 2018: contributorutACK 0e674ba5572275bcc1eb8f91c6292f871925f965 though I would prefer if the glitches would be fixed before mergejnewbery commented at 8:13 pm on May 17, 2018: memberthe initial “default” wallet did had no name in the dropdown.
Yes - this is a result of #11687 (review) , and is also visible in the
listwallets
andgetwalletinfo
RPC calls.This PR does introduce that behaviour, but does make it more visible when loading a second wallet.
promag commented at 11:27 pm on May 17, 2018: member@jonasschnelli launching withbitcoin-qt -regtest -wallet -wallet=w1
also adds an empty item to the checkbox.fixup! ui: Support wallets loaded dynamically 2e75134719promag commented at 11:48 pm on May 17, 2018: member@jonasschnelli care to test again? Will squash after that.jonasschnelli commented at 8:10 am on May 18, 2018: contributorTested ACK 2e751347190049ac1b7fb8378db004956700aaa1jonasschnelli merged this on May 18, 2018jonasschnelli closed this on May 18, 2018
jonasschnelli referenced this in commit e54550303b on May 18, 2018laanwj removed this from the "Blockers" column in a project
promag deleted the branch on May 20, 2018fanquake moved this from the "In progress" to the "Done" column in a project
ken2812221 commented at 3:41 pm on June 19, 2018: contributorIf wallet failed to load because of pruned mode, the dropdown menu shows the wallet.
MarcoFalke referenced this in commit 6579d80572 on Jun 20, 2018jasonbcox referenced this in commit 482ae43a56 on Oct 25, 2019jasonbcox referenced this in commit 962952f31a on Oct 25, 2019PastaPastaPasta referenced this in commit 40964a51cf on Dec 16, 2020PastaPastaPasta referenced this in commit 5d483106f8 on Dec 16, 2020PastaPastaPasta referenced this in commit b49405bcd9 on Dec 18, 2020PastaPastaPasta referenced this in commit ce5b06ed66 on Dec 18, 2020xdustinface referenced this in commit a34ac73dd2 on Apr 4, 2021xdustinface referenced this in commit af40021c9f on Apr 4, 2021xdustinface referenced this in commit 713e241b6f on Apr 4, 2021xdustinface referenced this in commit d84ee328ff on Apr 4, 2021xdustinface referenced this in commit 773e39e1e5 on Apr 5, 2021xdustinface referenced this in commit a8454e22b0 on Apr 13, 2021DrahtBot locked this on Sep 8, 2021
github-metadata-mirror
This is a metadata mirror of the GitHub repository bitcoin/bitcoin. This site is not affiliated with GitHub. Content is generated from a GitHub metadata backup.
generated: 2024-12-18 21:12 UTC
This is a metadata mirror of the GitHub repository bitcoin/bitcoin. This site is not affiliated with GitHub. Content is generated from a GitHub metadata backup.
generated: 2024-12-18 21:12 UTC
This site is hosted by @0xB10C
More mirrored repositories can be found on mirror.b10c.me
More mirrored repositories can be found on mirror.b10c.me