mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-04-09 04:39:08 +02:00
Merge bitcoin-core/gui#202: peers-tab: bug fix right panel toggle
8353e8cecc3e34a8699b53849df0adab622c1c14 peers-tab: bug fix right panel toggle (randymcmillan) Pull request description: Initial Presentation:  When node row selected - panel is presented:  When network disabled - right panel is hidden:  ACKs for top commit: jarolrod: ACK 8353e8cecc3e34a8699b53849df0adab622c1c14 jonatack: ACK 8353e8cecc3e34a8699b53849df0adab622c1c14 tested rebased on current master. Behavior is initially a bit surprising but this would allow more columns to be added to the peers tab window. Verified that selecting more than one peer, clicking on a column header, or running `disconnectnode "" <currently-selected-peer-id>` in the console (or on the CLI with the `-server` startup option) returns the window to its full size. If this is merged, it might be nice to have an obvious way to close the details area like a clickable "close this" icon in the upper left corner of the area. Talkless: tACK 8353e8cecc3e34a8699b53849df0adab622c1c14, tested on Debian Sid. Made `bitcoind` connect to `bitcoin-qt` with the PR changes, and after I quit the `bitcoind` instance, right panel do disappear, compared to the previous commit where it didn't. Tree-SHA512: 8fc156f40bdd61e3ba8db333c729a2a07fd5f0fd1eed56f2fd2aa5ae5864756f8ab6fad74ae2fb0552ee7518b6d489f5800709e6c80c6f31f61fd8ce21cece5f
This commit is contained in:
commit
8d7d5f257b
@ -988,7 +988,7 @@
|
||||
</item>
|
||||
</layout>
|
||||
</widget>
|
||||
<widget class="QWidget" name="widget_2" native="true">
|
||||
<widget class="QWidget" name="peersTabRightPanel" native="true">
|
||||
<property name="sizePolicy">
|
||||
<sizepolicy hsizetype="Minimum" vsizetype="Preferred">
|
||||
<horstretch>0</horstretch>
|
||||
|
@ -1097,7 +1097,7 @@ void RPCConsole::updateDetailWidget()
|
||||
{
|
||||
const QList<QModelIndex> selected_peers = GUIUtil::getEntryData(ui->peerWidget, PeerTableModel::NetNodeId);
|
||||
if (!clientModel || !clientModel->getPeerTableModel() || selected_peers.size() != 1) {
|
||||
ui->detailWidget->hide();
|
||||
ui->peersTabRightPanel->hide();
|
||||
ui->peerHeading->setText(tr("Select a peer to view detailed information."));
|
||||
return;
|
||||
}
|
||||
@ -1151,7 +1151,7 @@ void RPCConsole::updateDetailWidget()
|
||||
ui->peerPingWait->setText(GUIUtil::formatPingTime(stats->nodeStateStats.m_ping_wait_usec));
|
||||
}
|
||||
|
||||
ui->detailWidget->show();
|
||||
ui->peersTabRightPanel->show();
|
||||
}
|
||||
|
||||
void RPCConsole::resizeEvent(QResizeEvent *event)
|
||||
|
Loading…
x
Reference in New Issue
Block a user