HomePhabricator

qt: Hide peer detail view if multiple are selected

Description

qt: Hide peer detail view if multiple are selected

Summary:
Currently if multiple peers are selected the peer detail view shows the first new selected peer.

With this PR the peer detail view is hidden when multiple peers are selected. It is also a slight refactor to simplify and remove duplicate code.

This is a backport of core-gui#13

Test Plan:
ninja all check-all

Run bitcoin-qt, open menu Window > Peer. Select multiple peers.

Reviewers: #bitcoin_abc, Fabien

Reviewed By: #bitcoin_abc, Fabien

Differential Revision: https://reviews.bitcoinabc.org/D10814

Details

Provenance
Joo Barbosa <joao.paulo.barbosa@gmail.com>Authored on Jun 27 2020, 10:41
PiRKCommitted on Jan 11 2022, 16:40
PiRKPushed on Jan 11 2022, 16:40
Reviewer
Restricted Project
Differential Revision
D10814: qt: Hide peer detail view if multiple are selected
Parents
rABC891d5ad3c17f: Call unicode API on Windows
Branches
Unknown
Tags
Unknown