Join GitHub today
GitHub is home to over 20 million developers working together to host and review code, manage projects, and build software together.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
Already on GitHub? Sign in to your account
Multiple Selection for peer and ban tables #8874
Conversation
fanquake
added
the
GUI
label
Oct 4, 2016
|
concept ACK ... or you can change the text to "Disconnect" and "Ban for 1 hour". I think we should use consistent terminology here. The bookmark is called "Peers" and we use "node" here. RPCs are |
|
Our peers are nodes. Different terms for different things. Peer is the relationship, node is the thing. Truncating the menu items does seem like the simplest approach here, though. |
|
I've just removed |
|
Probably need #8885 in first to be able to test this re:banning. |
|
Have tested d651056 |
|
Click, hold, and move your mouse across multiple rows. That's what works. I haven't figured out Ctrl+click or Shift+click yet. |
|
Needs rebase. |
|
rebased |
jonasschnelli
requested changes
Oct 9, 2016
Tested a bit. Selecting multiple peers (with shift key or with the mouse) results in some of them getting deselected short after the selection.
| + if(!LookupHost(addr.c_str(), resolved, false)) | ||
| + continue; | ||
| + g_connman->Ban(resolved, BanReasonManuallyAdded, bantime); | ||
| + clearSelectedNode(); |
jonasschnelli
Oct 9, 2016
Member
I think the clearSelectedNode(); and L1008 can be moved out of the for loop
|
I'm not sure why some of them get deselected. I noticed that too, but I can't figure out a reason for why that happens. |
|
Can we use keyboard shortcuts for selecting as per GUI standards? I.e. hold down shift while using the a cursor up/down to select multiple, or using spacebar and cursor up/down to toggle whether a node is selected or not (once at least one node is selected)? |
|
@rebroad It's whatever |
added a commit
to bitcoinknots/bitcoin
that referenced
this pull request
Oct 20, 2016
|
@achow101: Are you planing to finalizing this? IMO there are still the issue with auto-deselecting rows. |
|
@jonasschnelli Yes, I do plan on finishing this. However, I am having trouble with figuring out why there is auto-deselecting. |
|
rebased. I think I figured out why it was auto-deselecting. It loses the selection after the model is refresehed. |
|
I think I fixed the problem. |
|
Actually fixed it this time. |
|
ACK 1077577 |
|
Seems to work well enough now. If there are still minor issues with selection they can be fixed later. |
laanwj
merged commit 1077577
into
bitcoin:master
Nov 9, 2016
1 check passed
added a commit
that referenced
this pull request
Nov 9, 2016
|
Post merge ACK. |


achow101 commentedOct 4, 2016
Allows multiple selection and action for the nodes in the peer and ban tables in the Debug Window.
Closes #8864