Skip to content

Commit b12165b

Browse files
committed
gui: rename "Peer Id" to "Peer" in tab column and details area
to allow resizing the column more tightly
1 parent 66fd3b2 commit b12165b

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/qt/peertablemodel.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ public Q_SLOTS:
8888

8989
private:
9090
interfaces::Node& m_node;
91-
const QStringList columns{tr("Peer Id"), tr("Address"), tr("Type"), tr("Network"), tr("Ping"), tr("Sent"), tr("Received"), tr("User Agent")};
91+
const QStringList columns{tr("Peer"), tr("Address"), tr("Type"), tr("Network"), tr("Ping"), tr("Sent"), tr("Received"), tr("User Agent")};
9292
std::unique_ptr<PeerTablePriv> priv;
9393
QTimer *timer;
9494
};

src/qt/rpcconsole.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1086,7 +1086,7 @@ void RPCConsole::updateDetailWidget()
10861086
const auto stats = selected_peers.first().data(PeerTableModel::StatsRole).value<CNodeCombinedStats*>();
10871087
// update the detail ui with latest node information
10881088
QString peerAddrDetails(QString::fromStdString(stats->nodeStats.addrName) + " ");
1089-
peerAddrDetails += tr("(peer id: %1)").arg(QString::number(stats->nodeStats.nodeid));
1089+
peerAddrDetails += tr("(peer: %1)").arg(QString::number(stats->nodeStats.nodeid));
10901090
if (!stats->nodeStats.addrLocal.empty())
10911091
peerAddrDetails += "<br />" + tr("via %1").arg(QString::fromStdString(stats->nodeStats.addrLocal));
10921092
ui->peerHeading->setText(peerAddrDetails);

0 commit comments

Comments
 (0)