-
Notifications
You must be signed in to change notification settings - Fork 38.7k
Show "No wallets available" in open menu instead of nothing #15957
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Show "No wallets available" in open menu instead of nothing #15957
Conversation
|
Mind attaching a screenshot? |
|
@promag screenshot added |
|
Concept ACK |
promag
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Concept ACK.
src/qt/bitcoingui.cpp
Outdated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Unnecessary QString and ...
|
shouldn't it rather say something like "no additional wallets available"? IIUC wallets that are already open are not listed, so when you open the program with the default wallet and then it says "no wallets available", it might also be confusing |
ryanofsky
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
utACK febd959a6aef9399d8a93b4476cf342217c35380. Code change looks good and this is less confusing than before. But it's still strange to have unloaded wallets listed in a menu on the left, and loaded wallets listed in a dropdown on the right, and no clear labeling of either list.
I think an improved UI would make the menu wallet list and the dropdown wallet list identical, and either show all wallets in the lists with clear loaded/unloaded labeling, or only show loaded wallets and move the list of unloaded wallets to a separate "Load wallet..." dialog.
Having the same wallets listed both in the file menu and dropdown would be redundant, but might be justified because the file menu is more discoverable and the dropdown menu is more convenient. We could drop one of the lists or move the list somewhere else like a top level Wallets menu.
src/qt/bitcoingui.cpp
Outdated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could use const auto& path to avoid string copy.
|
The following sections might be updated with supplementary metadata relevant to reviewers and maintainers. ConflictsReviewers, this pull request conflicts with the following ones:
If you consider this pull request important, please also help to review the conflicting pull requests. Ideally, start with the one that should be merged first. |
|
Concept ACK
👍
Agree, or just something like "All available wallets open." |
|
or maybe just gray out the ones already loaded? |
kristapsk
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
tACK c3ef63a
|
Tested ACK c3ef63a |
…hing c3ef63a Show loaded wallets as disabled in open menu instead of nothing (MeshCollider) Pull request description: Fixes the confusing behavior reported in #15952  ACKs for commit c3ef63: jonasschnelli: Tested ACK c3ef63a kristapsk: tACK c3ef63a Tree-SHA512: fc2b94936ca32b89e8146c65e3629785883d78660afc8838818df652a4df9185ddca6b36ebf140a7159ab42b0fa5aa72867558d4572a009be06f0831fa813d1f
Github-Pull: bitcoin#15957 Rebased-From: c3ef63a
… of nothing c3ef63a Show loaded wallets as disabled in open menu instead of nothing (MeshCollider) Pull request description: Fixes the confusing behavior reported in bitcoin#15952  ACKs for commit c3ef63: jonasschnelli: Tested ACK c3ef63a kristapsk: tACK c3ef63a Tree-SHA512: fc2b94936ca32b89e8146c65e3629785883d78660afc8838818df652a4df9185ddca6b36ebf140a7159ab42b0fa5aa72867558d4572a009be06f0831fa813d1f
Github-Pull: bitcoin#15957 Rebased-From: c3ef63a
Github-Pull: bitcoin#15957 Rebased-From: c3ef63a
… of nothing Summary: bitcoin/bitcoin@c3ef63a --- This is a backport of Core [[bitcoin/bitcoin#15957 | PR15957]] Test Plan: ninja check ./src/qt/bitcoin-qt -regtest Focus the Open wallet menu item, see that [default wallet] appears, greyed out because it is loaded. Empty out the `std::vector<std::string> wallets` right before the for-loop that iterates through it, compile and run the above again, see that focusing the Open wallet menu item shows `No wallets available` Reviewers: #bitcoin_abc, deadalnix Reviewed By: #bitcoin_abc, deadalnix Subscribers: deadalnix Differential Revision: https://reviews.bitcoinabc.org/D6163
… of nothing c3ef63a Show loaded wallets as disabled in open menu instead of nothing (MeshCollider) Pull request description: Fixes the confusing behavior reported in bitcoin#15952  ACKs for commit c3ef63: jonasschnelli: Tested ACK c3ef63a kristapsk: tACK c3ef63a Tree-SHA512: fc2b94936ca32b89e8146c65e3629785883d78660afc8838818df652a4df9185ddca6b36ebf140a7159ab42b0fa5aa72867558d4572a009be06f0831fa813d1f
fa90fe6 refactor: Rename getWallets to getOpenWallets in WalletController (João Barbosa) 224eb95 gui: Sort wallets in open wallet menu (João Barbosa) Pull request description: Ensure wallets are sorted by name in the open wallet menu. This also improves the change done in bitcoin#15957, since it avoids a second call to `listWalletDir`. ACKs for top commit: laanwj: code review ACK fa90fe6 Tree-SHA512: 349ea195021e56760dea3551126d1b9dc4821faab44aaf2858229db4fddaf0ce0b5eb0a8fa5025f47c77134b003067a77e8c340f9655a99e1305d430ccecced8
… of nothing c3ef63a Show loaded wallets as disabled in open menu instead of nothing (MeshCollider) Pull request description: Fixes the confusing behavior reported in bitcoin#15952  ACKs for commit c3ef63: jonasschnelli: Tested ACK c3ef63a kristapsk: tACK c3ef63a Tree-SHA512: fc2b94936ca32b89e8146c65e3629785883d78660afc8838818df652a4df9185ddca6b36ebf140a7159ab42b0fa5aa72867558d4572a009be06f0831fa813d1f
fa90fe6 refactor: Rename getWallets to getOpenWallets in WalletController (João Barbosa) 224eb95 gui: Sort wallets in open wallet menu (João Barbosa) Pull request description: Ensure wallets are sorted by name in the open wallet menu. This also improves the change done in bitcoin#15957, since it avoids a second call to `listWalletDir`. ACKs for top commit: laanwj: code review ACK fa90fe6 Tree-SHA512: 349ea195021e56760dea3551126d1b9dc4821faab44aaf2858229db4fddaf0ce0b5eb0a8fa5025f47c77134b003067a77e8c340f9655a99e1305d430ccecced8

Fixes the confusing behavior reported in #15952