peers-tab: bug fix right panel toggle

This commit is contained in:
randymcmillan 2021-01-28 20:37:20 -05:00
parent 80e16cadd5
commit 8353e8cecc
No known key found for this signature in database
GPG key ID: 97966C06BB06757B
2 changed files with 3 additions and 3 deletions

View file

@ -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>

View file

@ -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->peerHeight->setText(QString::number(stats->nodeStateStats.m_starting_height));
}
ui->detailWidget->show();
ui->peersTabRightPanel->show();
}
void RPCConsole::resizeEvent(QResizeEvent *event)