Skip to content

Conversation

@hebasto
Copy link
Member

@hebasto hebasto commented Nov 24, 2018

The e059726 commit from #6209 was intended to deselect a peer when switching away from the Peers tab in the RPC console.
But switching away from the Peers tab to the Console tab and back does not deselect a peer.

This PR makes tab switching consistent: a peer is always deselected when switching away from the Peers tab.

Deselect peer when switching away from Peers tab in RPC console. Now it
works for switching to Console tab and back as well.
@fanquake fanquake added the GUI label Nov 24, 2018
@jonasschnelli
Copy link
Contributor

utACK 22c867e

@fanquake
Copy link
Member

tACK 22c867e

master (327129f):
master

This PR (22c867e):
14798

@fanquake fanquake changed the title qt: Fix Peers tab switch away in RPC console qt: Fix deselecting peer when switching from peers to console tab Nov 26, 2018
@promag
Copy link
Contributor

promag commented Nov 26, 2018

The reason to deselect comes from @jonasschnelli comment #6209 (comment).

I think we could keep the selection while navigating to other places, after all, the user did select the peer for some reason. We could add a vertical scrollbar to the right pane or improve the layout if we want to allow a certain height.

@DrahtBot
Copy link
Contributor

DrahtBot commented Nov 26, 2018

The following sections might be updated with supplementary metadata relevant to reviewers and maintainers.

Conflicts

Reviewers, this pull request conflicts with the following ones:

  • #15136 (qt: "Peers" tab overhaul by hebasto)
  • #14810 (qt: Enable tabbing through labels by hebasto)

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.

@promag
Copy link
Contributor

promag commented Jan 5, 2019

Just want to add that the we also don't reset the console nor the transactions list.

I think it's perfectly fine to keep the selection/state, even if the window is closed.

@hebasto
Copy link
Member Author

hebasto commented Jan 10, 2019

Closed in favour of #15136.

@hebasto hebasto closed this Jan 10, 2019
laanwj added a commit that referenced this pull request Jan 16, 2019
3537c83 Do not deselect peer when switching away from tab (Hennadii Stepanov)
b0037c5 Improve Peers tab layout (Hennadii Stepanov)

Pull request description:

  This is an alternative to #14798.

  The "Peers" tab of the "Debug" window improved to address comments #6209 (comment) (by @jonasschnelli) and #14798 (comment) (by @promag).

  This allows to keep the peer selection while navigating to other places and effectively reverts e059726.

  Screenshots with this PR:
  ![screenshot from 2019-01-09 22-01-36](https://user-images.githubusercontent.com/32963518/50927352-2e6fb700-1460-11e9-9173-582348210492.png)
  ![screenshot from 2019-01-09 22-02-11](https://user-images.githubusercontent.com/32963518/50927354-329bd480-1460-11e9-9926-d0eb0f026a35.png)
  ![screenshot from 2019-01-09 22-02-37](https://user-images.githubusercontent.com/32963518/50927358-3596c500-1460-11e9-864d-c8704451f3d9.png)

Tree-SHA512: 3d086007f6d72930bc2fc3c395175adda0f1a7722de3842bc246ee4f3bfc5ebda4b9a626fb68a7ee8663a88d0842deb37c0c460ad84cc58e22f138acf8bc71ea
@hebasto hebasto deleted the 20181124-fix-peers-tab-switch branch January 16, 2019 12:15
deadalnix pushed a commit to Bitcoin-ABC/bitcoin-abc that referenced this pull request Nov 28, 2020
Summary:
3537c8345c788a527bb4e1d00683ca7f8ee5fb1a Do not deselect peer when switching away from tab (Hennadii Stepanov)
b0037c51909dc55e279baa81f063c169c9735105 Improve Peers tab layout (Hennadii Stepanov)

Pull request description:

  This is an alternative to #14798.

  The "Peers" tab of the "Debug" window improved to address comments bitcoin/bitcoin#6209 (comment) (by @jonasschnelli) and bitcoin/bitcoin#14798 (comment) (by @promag).

  This allows to keep the peer selection while navigating to other places and effectively reverts e059726.

  Screenshots with this PR:
  ![screenshot from 2019-01-09 22-01-36](https://user-images.githubusercontent.com/32963518/50927352-2e6fb700-1460-11e9-9173-582348210492.png)
  ![screenshot from 2019-01-09 22-02-11](https://user-images.githubusercontent.com/32963518/50927354-329bd480-1460-11e9-9926-d0eb0f026a35.png)
  ![screenshot from 2019-01-09 22-02-37](https://user-images.githubusercontent.com/32963518/50927358-3596c500-1460-11e9-864d-c8704451f3d9.png)

---

Backport of Core [[bitcoin/bitcoin#15136 | PR15136]]

Test Plan:
  ninja all
  ./qt/bitcoin-qt -testnet

check out the Peers tab for correctness

Reviewers: #bitcoin_abc, PiRK

Reviewed By: #bitcoin_abc, PiRK

Differential Revision: https://reviews.bitcoinabc.org/D8547
christiancfifi pushed a commit to christiancfifi/dash that referenced this pull request Oct 3, 2021
3537c83 Do not deselect peer when switching away from tab (Hennadii Stepanov)
b0037c5 Improve Peers tab layout (Hennadii Stepanov)

Pull request description:

  This is an alternative to bitcoin#14798.

  The "Peers" tab of the "Debug" window improved to address comments bitcoin#6209 (comment) (by @jonasschnelli) and bitcoin#14798 (comment) (by @promag).

  This allows to keep the peer selection while navigating to other places and effectively reverts e059726.

  Screenshots with this PR:
  ![screenshot from 2019-01-09 22-01-36](https://user-images.githubusercontent.com/32963518/50927352-2e6fb700-1460-11e9-9173-582348210492.png)
  ![screenshot from 2019-01-09 22-02-11](https://user-images.githubusercontent.com/32963518/50927354-329bd480-1460-11e9-9926-d0eb0f026a35.png)
  ![screenshot from 2019-01-09 22-02-37](https://user-images.githubusercontent.com/32963518/50927358-3596c500-1460-11e9-864d-c8704451f3d9.png)

Tree-SHA512: 3d086007f6d72930bc2fc3c395175adda0f1a7722de3842bc246ee4f3bfc5ebda4b9a626fb68a7ee8663a88d0842deb37c0c460ad84cc58e22f138acf8bc71ea
christiancfifi pushed a commit to christiancfifi/dash that referenced this pull request Oct 11, 2021
3537c83 Do not deselect peer when switching away from tab (Hennadii Stepanov)
b0037c5 Improve Peers tab layout (Hennadii Stepanov)

Pull request description:

  This is an alternative to bitcoin#14798.

  The "Peers" tab of the "Debug" window improved to address comments bitcoin#6209 (comment) (by @jonasschnelli) and bitcoin#14798 (comment) (by @promag).

  This allows to keep the peer selection while navigating to other places and effectively reverts e059726.

  Screenshots with this PR:
  ![screenshot from 2019-01-09 22-01-36](https://user-images.githubusercontent.com/32963518/50927352-2e6fb700-1460-11e9-9173-582348210492.png)
  ![screenshot from 2019-01-09 22-02-11](https://user-images.githubusercontent.com/32963518/50927354-329bd480-1460-11e9-9926-d0eb0f026a35.png)
  ![screenshot from 2019-01-09 22-02-37](https://user-images.githubusercontent.com/32963518/50927358-3596c500-1460-11e9-864d-c8704451f3d9.png)

Tree-SHA512: 3d086007f6d72930bc2fc3c395175adda0f1a7722de3842bc246ee4f3bfc5ebda4b9a626fb68a7ee8663a88d0842deb37c0c460ad84cc58e22f138acf8bc71ea
pravblockc pushed a commit to pravblockc/dash that referenced this pull request Nov 18, 2021
3537c83 Do not deselect peer when switching away from tab (Hennadii Stepanov)
b0037c5 Improve Peers tab layout (Hennadii Stepanov)

Pull request description:

  This is an alternative to bitcoin#14798.

  The "Peers" tab of the "Debug" window improved to address comments bitcoin#6209 (comment) (by @jonasschnelli) and bitcoin#14798 (comment) (by @promag).

  This allows to keep the peer selection while navigating to other places and effectively reverts e059726.

  Screenshots with this PR:
  ![screenshot from 2019-01-09 22-01-36](https://user-images.githubusercontent.com/32963518/50927352-2e6fb700-1460-11e9-9173-582348210492.png)
  ![screenshot from 2019-01-09 22-02-11](https://user-images.githubusercontent.com/32963518/50927354-329bd480-1460-11e9-9926-d0eb0f026a35.png)
  ![screenshot from 2019-01-09 22-02-37](https://user-images.githubusercontent.com/32963518/50927358-3596c500-1460-11e9-864d-c8704451f3d9.png)

Tree-SHA512: 3d086007f6d72930bc2fc3c395175adda0f1a7722de3842bc246ee4f3bfc5ebda4b9a626fb68a7ee8663a88d0842deb37c0c460ad84cc58e22f138acf8bc71ea
@bitcoin bitcoin locked as resolved and limited conversation to collaborators Dec 16, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants